https://gcc.gnu.org/bugzilla/show_bug.cgi?id=13
Andrew Pinski changed:
What|Removed |Added
Ever confirmed|0 |1
Last reconfirmed|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=13
--- Comment #3 from Marek Polacek ---
The problem is that, when we're in a system header,
check_redeclaration_exception_specification doesn't emit an error:
1242 if (DECL_IN_SYSTEM_HEADER (old_decl))
1243 complained = pedwarn (n
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=13
--- Comment #2 from Marek Polacek ---
Started with r160297 or r160298 I think.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=13
--- Comment #1 from Marek Polacek ---
Without the directive:
q.C:6:22: error: declaration of ‘S::S() noexcept (T::value)’ has a different
exception specifier
6 | template S::S() noexcept(T::value) {}
| ^~~~
q.C:4: