https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100659

--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jason Merrill <ja...@gcc.gnu.org>:

https://gcc.gnu.org/g:fe9a6614a16b5ea7f12141c50b6b7de984390ed8

commit r12-932-gfe9a6614a16b5ea7f12141c50b6b7de984390ed8
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