From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5291F3870842; Tue, 12 May 2020 19:30:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5291F3870842 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1589311844; bh=+ijvY2aHTzoTbU1JYQgcYeSDYSLPoxKO5GEfZ18TJks=; h=From:To:Subject:Date:From; b=jVfJA6mpzexBqTd4DpCpW5JdJU3tH/k4CbSk/2Jqp9hfSasdhGq3phJRjguWA/ZVu BfiTXkHDgf5JqqYoo0tNHHKEaijBgrrzXGUNYerj6mFS29fsAKgGqQZsMEwX9qt2n7 q3Vcjv7jdDBZtirFUNQIuBY9gzEfaK0DCsQvoAjo= From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/95093] New: Implement DR 1966, Colon following enumeration elaborated-type-specifier Date: Tue, 12 May 2020 19:30:44 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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: Tue, 12 May 2020 19:30:44 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95093 Bug ID: 95093 Summary: Implement DR 1966, Colon following enumeration elaborated-type-specifier Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: mpolacek at gcc dot gnu.org Target Milestone: --- In C++11 enum E { }; void f(bool b) { E e =3D b ? *new enum E : E{}; } should now compile: the colon is not an enum-base, it's part of a ternary operator. But we think we're defining a new type here, and reject it. See http://wg21.link/cwg1966=