From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5F4023858D35; Sun, 29 Jan 2023 15:47:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5F4023858D35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1675007227; bh=0bBjx57oXSa4CP3fmMrgCmeNkIPwjA+Uh6XNAyMzWi4=; h=From:To:Subject:Date:From; b=Pk/EyWSp8Bc5QuK5WZWwtpqJtOl+XjANUm87rNbSg5ZGRwdnUxHmi8YAQG1yRbXgK sLSCbkdIXvyYu7GvXKkJTvLtxD7vVFN5BwPCiuY5xuC44wxkbJ6jwJpV5ljkIZSWYO qBl+VCvnT7pfLJVVjCdWyrWyCan/o8hRpbdinw80= From: "Mark_B53 at yahoo dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/108591] New: void{} does not error out in 12.1 Date: Sun, 29 Jan 2023 15:47:07 +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: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: Mark_B53 at yahoo dot com 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D108591 Bug ID: 108591 Summary: void{} does not error out in 12.1 Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: Mark_B53 at yahoo dot com Target Milestone: --- void fn1() { return void{}; // fails in gcc 11.3, passes in gcc 12.1 } void fn2() { return void(); // passes in both gcc 11.3 and gcc 12.1 } I would not have expected fn1 to be legal C++.=