Re: [c++/68475] ICE with fno-exceptions

2016-03-31 Thread Jason Merrill
OK. Jason

Re: [c++/68475] ICE with fno-exceptions

2016-03-31 Thread Nathan Sidwell
On 03/30/16 09:44, Jason Merrill wrote: 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 ne

Re: [c++/68475] ICE with fno-exceptions

2016-03-30 Thread Jason Merrill
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 checki

[c++/68475] ICE with fno-exceptions

2016-03-30 Thread Nathan Sidwell
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