[Bug c++/100659] [11/12 Regression] ICE in supplement_binding_1, at cp/name-lookup.c:2702 since r11-5003-gd50310408f54e380
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu May 20 03:12:51 GMT 2021
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100659
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-11 branch has been updated by Jason Merrill
<jason@gcc.gnu.org>:
https://gcc.gnu.org/g:8b7212ebb80e854c08274228627ce0a3061db6b0
commit r11-8443-g8b7212ebb80e854c08274228627ce0a3061db6b0
Author: Jason Merrill <jason@redhat.com>
Date: Wed May 19 16:40:24 2021 -0400
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.
More information about the Gcc-bugs
mailing list