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

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

https://gcc.gnu.org/g:2f9bb63c5e82512ba9e53f4d5e67949c100d8830

commit r12-9436-g2f9bb63c5e82512ba9e53f4d5e67949c100d8830
Author: Jason Merrill <ja...@redhat.com>
Date:   Thu Mar 16 13:11:32 2023 -0400

    c++: &enum::enumerator [PR101869]

    We don't want to call build_offset_ref with an enum.

            PR c++/101869

    gcc/cp/ChangeLog:

            * semantics.cc (finish_qualified_id_expr): Don't try to build a
            pointer-to-member if the scope is an enumeration.

    gcc/testsuite/ChangeLog:

            * g++.dg/cpp0x/enum43.C: New test.

Reply via email to