From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 1B0FF3855011; Mon, 19 Jul 2021 10:37:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1B0FF3855011 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/101500] [9/10/11/12 Regression] gcc accepts the code with extra curly braces Date: Mon, 19 Jul 2021 10:36:59 +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: 11.1.0 X-Bugzilla-Keywords: accepts-invalid X-Bugzilla-Severity: normal X-Bugzilla-Who: redi 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: cf_known_to_fail cc cf_known_to_work cf_reconfirmed_on everconfirmed short_desc bug_status 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, 19 Jul 2021 10:37:00 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D101500 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Known to fail| |10.3.0, 11.1.0, 12.0, | |8.1.0, 9.4.0 CC| |jason at gcc dot gnu.org Known to work| |7.5.0 Last reconfirmed| |2021-07-19 Ever confirmed|0 |1 Summary|gcc accepts the code with |[9/10/11/12 Regression] gcc |extra curly braces |accepts the code with extra | |curly braces Status|UNCONFIRMED |NEW --- Comment #1 from Jonathan Wakely --- EDG v6.2 also accepts this, but Clang and MSVC don't. GCC started to accept it at: PR c++/85092 - C++17 ICE with unused list constructor. * call.c (conv_binds_ref_to_prvalue): Also count ck_identity from a TARGET_EXPR. From-SVN: r259052 I'll confirm it as a regression, since it doesn't look like that intended to change this case.=