I was wondering, will new T still throw bad_alloc if I compile my program using the -fno-exceptions option to disable exception handling?
Or will the compiler (GCC and clang support that option) implicitly transform the use of new T to new (nothrow) T?
I can’t give a definitive answer to all the perks around -fno-exceptions, just the observations on a 32 bit linux machine, gcc 4.5.1 – bad_alloc is thrown with and without
-fno-exceptions