From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A97F23887015; Mon, 13 Apr 2020 20:42:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A97F23887015 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1586810550; bh=zf2sf0tcimCDwlq2LXYYxudzB3wNDPQbwyzbMEC6Kwg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=id0b630Hz4XY+i6q7mT5lz6gA7zEqASpqalMJFxe2xQP0XvuxwtkfBThjGCywpluG dBMVVBwtJnJ3DhbYuil0R2ONu7cwyJRUTRckXFNWToKGSywnCCTtl+kbvNT/7zUj0C 5Dhn08x1tv5jlq1dGvVN7E6qXkWDuPt35VbiylyY= From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/89025] Wrong point of declaration for enumeration names Date: Mon, 13 Apr 2020 20:42:30 +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: 9.0 X-Bugzilla-Keywords: accepts-invalid, rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Apr 2020 20:42:30 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D89025 Marek Polacek changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mpolacek at gcc dot gnu.org --- Comment #1 from Marek Polacek --- This is tricky; we can't just move the start_enum code in cp_parser_enum_specifier before parsing the enum-base, because at that poin= t we don't have the underlying type yet. None of the other compilers I've tried implement seem to implement this.=