https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98352
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Marek Polacek <mpola...@gcc.gnu.org>: https://gcc.gnu.org/g:c453a817129c2c362726a9773390419f1df7dda3 commit r11-7868-gc453a817129c2c362726a9773390419f1df7dda3 Author: Marek Polacek <pola...@redhat.com> Date: Fri Mar 26 11:20:03 2021 -0400 c++: ICE on invalid with NSDMI in C++98 [PR98352] NSDMIs are a C++11 thing, and here we ICE with them on the non-C++11 path. Fortunately all we need is a small tweak to my recent r11-7835 patch. gcc/cp/ChangeLog: PR c++/98352 * method.c (implicitly_declare_fn): Pass &raises to synthesized_method_walk. gcc/testsuite/ChangeLog: PR c++/98352 * g++.dg/cpp0x/inh-ctor37.C: Remove dg-error. * g++.dg/cpp0x/nsdmi17.C: New test.