[PR c++/84962] ICE with anon-struct member
commit28b9418b84046e41e9a0b5c00b0f481b174824f5
authornathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 20 Mar 2018 16:01:08 +0000 (20 16:01 +0000)
committernathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 20 Mar 2018 16:01:08 +0000 (20 16:01 +0000)
tree43d5d82e71d5996f0efb9273f8c4a2ac482b8726
parent86a31b69a311ac53dd9f3e86a1061e2a4bc292df
[PR c++/84962] ICE with anon-struct member

https://gcc.gnu.org/ml/gcc-patches/2018-03/msg00961.html
PR c++/84962
* name-lookup.c (pushdecl_class_level): Push anon-struct's
member_vec, if there is one.

PR c++/84962
* g++.dg/lookup/pr84962.C: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@258686 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/name-lookup.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/lookup/pr84962.C [new file with mode: 0644]