I didn't know static linking has such an effect. I tested my example (with iostream) again by statically linking to stdc++ only and it works. g++.exe -std=c++11 / -std=c++14 -c test1.cpp -o test1.o g++.exe -o test1.exe test1.o -static-libstdc++ 1 2 1 2 If this is indeed a bug, I am not sure how to proceed. Do I just wait for somebody else to fix this issue or report this again on gcc's bug tracker?
Actually the array form of new will call the non-array form according to the standard so msvc's result is correct. Check overload no. 2 here http://en.cppreference.com/w/cpp/memory/new/operator_new. I did not know that at the time the ticket was opened. Since then, there was already an answer from StackOverflow https://stackoverflow.com/questions/44907098/c-new-and-delete-overloading but it only answered half the question. Then I realized it might be a bug hence this ticket.
Actually the array form of new will call the non-array form according to the standard. Check overload no. 2 here http://en.cppreference.com/w/cpp/memory/new/operator_new. I did not know that at the time the ticket was opened. Since then, there was already an answer from StackOverflow https://stackoverflow.com/questions/44907098/c-new-and-delete-overloading but it only answered half the question. Then I realized it might be a bug hence this ticket.
Actually the array form of new will call the non-array form according to the standard. Check overload no. 2 here http://en.cppreference.com/w/cpp/memory/new/operator_new. I did not know that at the time the ticket was opened. Since then, there was already an answer from StackOverflow https://stackoverflow.com/questions/44907098/c-new-and-delete-overloading but it only answered half the question. Then I realized it might be a bug hence this ticket.
c++ new and delete overloading inconsistent behavior
I would really like that to happen as well. Thanks for your tireless effort in maintaining...
First stable release! Features a major redesign of RustyCoder's internal workings,...
[NEW] Microsoft Visual Studio 2015 solution files