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

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

https://gcc.gnu.org/g:1cc8814098bb46f9fca58a0b831fbf9a8574bdc9

commit r13-6721-g1cc8814098bb46f9fca58a0b831fbf9a8574bdc9
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