diff options
author | Jason Merrill <jason@redhat.com> | 2022-03-30 13:57:22 -0400 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2022-03-30 21:41:39 -0400 |
commit | 0ce8154f1c72e6d701bff969a007938e2f986369 (patch) | |
tree | 4e17b6464921f41bb0056a4b655ec4f029d3414d /gcc/gcov-io.cc | |
parent | 150ab50f7449cf5b496bbe6e5c60cb1adb2e2d6c (diff) | |
download | gcc-0ce8154f1c72e6d701bff969a007938e2f986369.zip gcc-0ce8154f1c72e6d701bff969a007938e2f986369.tar.gz gcc-0ce8154f1c72e6d701bff969a007938e2f986369.tar.bz2 |
c++: parse trivial DMI immediately [PR96645]
The recent change to reject __is_constructible for nested classes with DMI
is, unsurprisingly, breaking some code. Let's allow simple cases by
immediately parsing DMI that do no name lookup; then being in complete class
scope makes no difference.
PR c++/96645
gcc/cp/ChangeLog:
* parser.cc (cp_parser_early_parsing_nsdmi): New.
(cp_parser_member_declaration): Call it.
gcc/testsuite/ChangeLog:
* g++.dg/cpp0x/nsdmi10.C: Now OK.
* g++.dg/ext/is_constructible3.C: Likewise.
* g++.dg/ext/is_constructible7.C: Likewise.
Diffstat (limited to 'gcc/gcov-io.cc')
0 files changed, 0 insertions, 0 deletions