diff options
| author | Jason Merrill <jason@redhat.com> | 2021-04-10 14:00:15 -0400 |
|---|---|---|
| committer | Jason Merrill <jason@redhat.com> | 2021-04-10 23:52:07 -0400 |
| commit | 936d500dfc17f58f2507ecd0f7f26e4f197052ee (patch) | |
| tree | e83b9cf454999e17c5303379f0abd5d7c5e31368 /libcpp/errors.c | |
| parent | 1d54b13841774aa40f5d0a5ab87b19e7e1276d42 (diff) | |
| download | gcc-936d500dfc17f58f2507ecd0f7f26e4f197052ee.zip gcc-936d500dfc17f58f2507ecd0f7f26e4f197052ee.tar.gz gcc-936d500dfc17f58f2507ecd0f7f26e4f197052ee.tar.bz2 | |
c++: ICE with anonymous union [PR97974]
Here lookup got confused by finding a conversion operator from
lookup_anon_field. Let's avoid this by pruning functions from
CLASSTYPE_MEMBER_VEC as well as TYPE_FIELDS.
gcc/cp/ChangeLog:
PR c++/97974
* decl.c (fixup_anonymous_aggr): Prune all functions from
CLASSTYPE_MEMBER_VEC.
gcc/testsuite/ChangeLog:
PR c++/97974
* g++.dg/lookup/pr84962.C: Adjust diagnostic.
* g++.dg/other/anon-union5.C: New test.
Diffstat (limited to 'libcpp/errors.c')
0 files changed, 0 insertions, 0 deletions
