On 03/30/2016 08:09 AM, Nathan Sidwell wrote:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68475
This patch fixes an ICE with -fno-exceptions. We were not checking eh
spec equality when merging decls, leading to a checking-assert blowing
up later. As postulated in the bug report, always checking leads to
good behaviour. Even though we ignore the eh spec when generating code,
we should check the source is well formed.
Hmm, I think the use of the flag there was meant to allow leaving the
exception specification off in some declarations. I'm open to getting
stricter, but I'd prefer to make it a pedwarn when !flag_exceptions
rather than an error, in which case we still need to deal with the
mismatch in merge_exception_specifiers.
Jason