diff options
author | Jason Merrill <jason@redhat.com> | 2021-05-19 16:40:24 -0400 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2021-05-19 23:10:28 -0400 |
commit | fe9a6614a16b5ea7f12141c50b6b7de984390ed8 (patch) | |
tree | d650424172bcd8f634842435403a8c00a3874a3a /libcpp/lex.c | |
parent | 65f32e5d6bbeb93a7d8d121fd56af6555e16d747 (diff) | |
download | gcc-fe9a6614a16b5ea7f12141c50b6b7de984390ed8.zip gcc-fe9a6614a16b5ea7f12141c50b6b7de984390ed8.tar.gz gcc-fe9a6614a16b5ea7f12141c50b6b7de984390ed8.tar.bz2 |
c++: ICE with using and enum [PR100659]
Here the code for 'using enum' is confused by the combination of a
using-decl and an enum that are not from 'using enum'; this CONST_DECL is
from the normal unscoped enum scoping.
PR c++/100659
gcc/cp/ChangeLog:
* cp-tree.h (CONST_DECL_USING_P): Check for null TREE_TYPE.
gcc/testsuite/ChangeLog:
* g++.dg/parse/access13.C: New test.
Diffstat (limited to 'libcpp/lex.c')
0 files changed, 0 insertions, 0 deletions