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
<ja...@gcc.gnu.org>:

https://gcc.gnu.org/g:8b7212ebb80e854c08274228627ce0a3061db6b0

commit r11-8443-g8b7212ebb80e854c08274228627ce0a3061db6b0
Author: Jason Merrill <ja...@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.

Reply via email to