From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 47D553858D35; Wed, 24 Jun 2020 19:51:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 47D553858D35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1593028293; bh=Gia5DoD4v4uqYJnb8LV/5lJKwX18RH872BqJKJRRL28=; h=From:To:Subject:Date:From; b=GXtfBScwt7q4qnf/vIL5bFuPjy2Ix/y9uQdvWLgU1C8sHountQlNBfTTJWRzrQPGl lCdCassBKGkBSFYDROIVxes+/W5FbrDkk9ZxfYdj2b/JgqqgUxBubnblYA5XEjcBtc NKnbR4eW9H+E5aLawrycE+T2lSOzu/Fn6hqzxfyI= From: "drewb at valvesoftware dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/95883] New: Attributes on lambdas appear to be parsed in the wrong place Date: Wed, 24 Jun 2020 19:51:33 +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: 9.3.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: drewb at valvesoftware 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 attachments.created 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: Wed, 24 Jun 2020 19:51:33 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95883 Bug ID: 95883 Summary: Attributes on lambdas appear to be parsed in the wrong place Product: gcc Version: 9.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: drewb at valvesoftware dot com Target Milestone: --- Created attachment 48782 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D48782&action=3Dedit Artificial source test case In 90333 there's a discussion of where attributes on lambdas should be processed. In 8.3 they were handled after the declarator but that regresse= d in 9. 90333 says that it was fixed to work properly after the declarator and = that they also added support for attributes before the declarator. However in testing against 9.3 attributes after the declarator do not work so it does = not look like the fix is working. cppreference says that lambda attributes should come after the declarator.= =20 Testing with godbolt it looks like attributes after the declarator are the common case (for example clang works on the test case and fails with attrib= utes before the declarator).=