[Bug c++/56126] -fno-exceptions should activate -fcheck-new or issue diagnostic for all new operators without throw()
bruck.michael at googlemail dot com
gcc-bugzilla@gcc.gnu.org
Fri Jan 9 08:24:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56126
--- Comment #15 from Michael Bruck <bruck.michael at googlemail dot com> ---
(In reply to Jonathan Wakely from comment #13)
> (In reply to Michael Bruck from comment #11)
> > throwing is undefined behavior with -fno-exceptions.
>
> No it isn't, it's ill-formed due to a syntax error. That's very different to
> undefined behaviour.
I misunderstood Olaf, I guess he means they replace them via preprocessor
macros. In any case it is different from an allocation failure, which was my
point.
More information about the Gcc-bugs
mailing list