commit | cc01cd9397fe99e707bcc5b98bb33d807ba610d7 | [log] [tgz] |
---|---|---|
author | Jason Merrill <jason@redhat.com> | Thu Jan 20 09:18:45 2022 -0500 |
committer | Jason Merrill <jason@redhat.com> | Thu Jan 20 15:23:43 2022 -0500 |
tree | 6712a6c9d974d8e159226230652b802229bee605 | |
parent | 30b38394b482ce894d9bc81731a0eea8711f4587 [diff] |
c++: designator for base class member [PR101405] A C++20 designator must name a direct non-static member of the class; in this case it names a member of a base class, and we should give an error instead of crashing. PR c++/101405 gcc/cp/ChangeLog: * decl.cc (reshape_init_class): Reject designator for a member of another class. gcc/testsuite/ChangeLog: * g++.dg/cpp2a/desig20.C: New test.