c++: ICE on invalid with NSDMI in C++98 [PR98352]
authorMarek Polacek <polacek@redhat.com>
Fri, 26 Mar 2021 15:20:03 +0000 (11:20 -0400)
committerMarek Polacek <polacek@redhat.com>
Fri, 26 Mar 2021 20:12:08 +0000 (16:12 -0400)
commitc453a817129c2c362726a9773390419f1df7dda3
tree51fd88250e662c19b7c5ef709efeb54450473e7f
parent5f070ba29803c99a5fe94ed7632d7b8c55593df3
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.
gcc/cp/method.c
gcc/testsuite/g++.dg/cpp0x/inh-ctor37.C
gcc/testsuite/g++.dg/cpp0x/nsdmi17.C [new file with mode: 0644]