https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68475
Patrick Palka <ppalka at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ppalka at gcc dot gnu.org
--- Comment #2 from Patrick Palka <ppalka at gcc dot gnu.org> ---
We don't emit an error for an exception specification mismatch when
!flag_exceptions. Not doing so causes us to ICE in merge_exception_specifiers
because we assert that either the specifiers are equivalent or errorcount != 0.
Looks like this can be fixed either by checking !flag_exceptions in the assert
or by removing the flag_exceptions restriction for emitting mismatch errors.