]> gcc.gnu.org Git - gcc.git/commit
c++: ICE with using and enum [PR100659]
authorJason Merrill <jason@redhat.com>
Wed, 19 May 2021 20:40:24 +0000 (16:40 -0400)
committerJason Merrill <jason@redhat.com>
Thu, 20 May 2021 03:10:28 +0000 (23:10 -0400)
commitfe9a6614a16b5ea7f12141c50b6b7de984390ed8
treed650424172bcd8f634842435403a8c00a3874a3a
parent65f32e5d6bbeb93a7d8d121fd56af6555e16d747
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.
gcc/cp/cp-tree.h
gcc/testsuite/g++.dg/parse/access13.C [new file with mode: 0644]
This page took 0.062896 seconds and 6 git commands to generate.