public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/95883] New: Attributes on lambdas appear to be parsed in the wrong place
@ 2020-06-24 19:51 drewb at valvesoftware dot com
  2020-06-25 13:09 ` [Bug c++/95883] " ttimo at valvesoftware dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: drewb at valvesoftware dot com @ 2020-06-24 19:51 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95883

            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=48782&action=edit
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 regressed 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. 
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 attributes
before the declarator).

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-02-26  4:15 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-24 19:51 [Bug c++/95883] New: Attributes on lambdas appear to be parsed in the wrong place drewb at valvesoftware dot com
2020-06-25 13:09 ` [Bug c++/95883] " ttimo at valvesoftware dot com
2020-06-25 23:32 ` ttimo at valvesoftware dot com
2020-06-29 21:12 ` patrick.a.moran at gmail dot com
2020-06-29 21:15 ` ttimo at valvesoftware dot com
2021-02-26  4:15 ` jason at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).