From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 02886385B53F; Thu, 16 Mar 2023 22:10:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 02886385B53F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1679004629; bh=lOUdm17/8wrBXq2TBd8M/7//pVV6KKSwRIn7JwUW6qY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=sYZ34SfZ99UJmn4pUETvVQLqLJxDQeWxKG5LWwKPoDHJvaAm5Msr6Y4t4c20nf9pJ VZI5H9ZUrUewcZwP7XvMtdXj2rJgaKC+0BkkUwUfbkjmUal4t/ngP1bcauXp+ACbHK Im6wdyCOYmMhv//Geicd1zNVE1HkPS5ExT+4BS9I= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/101869] [10/11/12/13 Regression] &enumclass::enumvalue is rejected Date: Thu, 16 Mar 2023 22:10:28 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: jason at gcc dot gnu.org X-Bugzilla-Target-Milestone: 10.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D101869 --- Comment #5 from CVS Commits --- The trunk branch has been updated by Jason Merrill : https://gcc.gnu.org/g:1cc8814098bb46f9fca58a0b831fbf9a8574bdc9 commit r13-6721-g1cc8814098bb46f9fca58a0b831fbf9a8574bdc9 Author: Jason Merrill 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.=