https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64482

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Olaf van der Spek from comment #0)
> Currently -fno-exceptions is partially implemented in the std library.

That's not really accurate, it is implemented entirely in the compiler, but the
library contains workarounds to support using it with -fno-exceptions.

Currently, user code that wants to support -fno-exceptions needs to provide its
own similar workarounds. That can be done by checking the __cpp_exceptions
feature-test macro (or __EXCEPTIONS for older releases).

IMHO it doesn't really make sense to expect to use 'throw' when exceptions are
disabled.

Reply via email to