[Bug c++/100003] internal compiler error: in merge_exception_specifiers

2021-08-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=13 Andrew Pinski changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|

[Bug c++/100003] internal compiler error: in merge_exception_specifiers

2021-04-09 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
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

[Bug c++/100003] internal compiler error: in merge_exception_specifiers

2021-04-09 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=13 --- Comment #2 from Marek Polacek --- Started with r160297 or r160298 I think.

[Bug c++/100003] internal compiler error: in merge_exception_specifiers

2021-04-09 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
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: