public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/90333] [9 Regression] Can't apply attributes to lambdas with trailing returns
[not found] <bug-90333-4@http.gcc.gnu.org/bugzilla/>
@ 2020-06-25 23:34 ` ttimo at valvesoftware dot com
2021-02-26 4:12 ` [Bug c++/90333] [9/10/11 " jason at gcc dot gnu.org
` (6 subsequent siblings)
7 siblings, 0 replies; 8+ messages in thread
From: ttimo at valvesoftware dot com @ 2020-06-25 23:34 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90333
--- Comment #9 from Timothee Besset <ttimo at valvesoftware dot com> ---
First test case is still a problem in 9.3 and 10:
[]() __attribute__((always_inline)) -> int { return 0; }
Fix proposed in https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95883
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/90333] [9/10/11 Regression] Can't apply attributes to lambdas with trailing returns
[not found] <bug-90333-4@http.gcc.gnu.org/bugzilla/>
2020-06-25 23:34 ` [Bug c++/90333] [9 Regression] Can't apply attributes to lambdas with trailing returns ttimo at valvesoftware dot com
@ 2021-02-26 4:12 ` jason at gcc dot gnu.org
2021-02-26 4:13 ` jason at gcc dot gnu.org
` (5 subsequent siblings)
7 siblings, 0 replies; 8+ messages in thread
From: jason at gcc dot gnu.org @ 2021-02-26 4:12 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90333
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |ASSIGNED
Resolution|FIXED |---
Summary|[9 Regression] Can't apply |[9/10/11 Regression] Can't
|attributes to lambdas with |apply attributes to lambdas
|trailing returns |with trailing returns
--- Comment #10 from Jason Merrill <jason at gcc dot gnu.org> ---
Reopening.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/90333] [9/10/11 Regression] Can't apply attributes to lambdas with trailing returns
[not found] <bug-90333-4@http.gcc.gnu.org/bugzilla/>
2020-06-25 23:34 ` [Bug c++/90333] [9 Regression] Can't apply attributes to lambdas with trailing returns ttimo at valvesoftware dot com
2021-02-26 4:12 ` [Bug c++/90333] [9/10/11 " jason at gcc dot gnu.org
@ 2021-02-26 4:13 ` jason at gcc dot gnu.org
2021-02-26 4:15 ` jason at gcc dot gnu.org
` (4 subsequent siblings)
7 siblings, 0 replies; 8+ messages in thread
From: jason at gcc dot gnu.org @ 2021-02-26 4:13 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90333
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |s_gccbugzilla at nedprod dot com
--- Comment #11 from Jason Merrill <jason at gcc dot gnu.org> ---
*** Bug 96485 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/90333] [9/10/11 Regression] Can't apply attributes to lambdas with trailing returns
[not found] <bug-90333-4@http.gcc.gnu.org/bugzilla/>
` (2 preceding siblings ...)
2021-02-26 4:13 ` jason at gcc dot gnu.org
@ 2021-02-26 4:15 ` jason at gcc dot gnu.org
2021-02-27 20:43 ` cvs-commit at gcc dot gnu.org
` (3 subsequent siblings)
7 siblings, 0 replies; 8+ messages in thread
From: jason at gcc dot gnu.org @ 2021-02-26 4:15 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90333
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |drewb at valvesoftware dot com
--- Comment #12 from Jason Merrill <jason at gcc dot gnu.org> ---
*** Bug 95883 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/90333] [9/10/11 Regression] Can't apply attributes to lambdas with trailing returns
[not found] <bug-90333-4@http.gcc.gnu.org/bugzilla/>
` (3 preceding siblings ...)
2021-02-26 4:15 ` jason at gcc dot gnu.org
@ 2021-02-27 20:43 ` cvs-commit at gcc dot gnu.org
2021-02-27 20:43 ` cvs-commit at gcc dot gnu.org
` (2 subsequent siblings)
7 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-02-27 20:43 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90333
--- Comment #13 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-10 branch has been updated by Jason Merrill
<jason@gcc.gnu.org>:
https://gcc.gnu.org/g:f6b1c08e3783bbc3420d95a0357935250d61a29d
commit r10-9394-gf6b1c08e3783bbc3420d95a0357935250d61a29d
Author: Jason Merrill <jason@redhat.com>
Date: Fri Feb 26 05:45:02 2021 -0500
c++: Allow GNU attributes before lambda -> [PR90333]
In my 9.3/10 patch for 90333 I allowed attributes between [] and (), and
after the trailing return type, but not in the place that GCC 8 expected
them, and we've gotten several bug reports about that. So let's allow them
there, as well.
gcc/cp/ChangeLog:
PR c++/90333
* parser.c (cp_parser_lambda_declarator_opt): Accept GNU attributes
between () and ->.
gcc/testsuite/ChangeLog:
PR c++/90333
* g++.dg/ext/attr-lambda3.C: New test.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/90333] [9/10/11 Regression] Can't apply attributes to lambdas with trailing returns
[not found] <bug-90333-4@http.gcc.gnu.org/bugzilla/>
` (4 preceding siblings ...)
2021-02-27 20:43 ` cvs-commit at gcc dot gnu.org
@ 2021-02-27 20:43 ` cvs-commit at gcc dot gnu.org
2021-02-27 20:44 ` cvs-commit at gcc dot gnu.org
2021-02-28 5:39 ` jason at gcc dot gnu.org
7 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-02-27 20:43 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90333
--- Comment #14 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-9 branch has been updated by Jason Merrill
<jason@gcc.gnu.org>:
https://gcc.gnu.org/g:74d34ca781cf94c8b4979c524dbbfbe95863678a
commit r9-9254-g74d34ca781cf94c8b4979c524dbbfbe95863678a
Author: Jason Merrill <jason@redhat.com>
Date: Fri Feb 26 05:45:02 2021 -0500
c++: Allow GNU attributes before lambda -> [PR90333]
In my 9.3/10 patch for 90333 I allowed attributes between [] and (), and
after the trailing return type, but not in the place that GCC 8 expected
them, and we've gotten several bug reports about that. So let's allow them
there, as well.
gcc/cp/ChangeLog:
PR c++/90333
* parser.c (cp_parser_lambda_declarator_opt): Accept GNU attributes
between () and ->.
gcc/testsuite/ChangeLog:
PR c++/90333
* g++.dg/ext/attr-lambda3.C: New test.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/90333] [9/10/11 Regression] Can't apply attributes to lambdas with trailing returns
[not found] <bug-90333-4@http.gcc.gnu.org/bugzilla/>
` (5 preceding siblings ...)
2021-02-27 20:43 ` cvs-commit at gcc dot gnu.org
@ 2021-02-27 20:44 ` cvs-commit at gcc dot gnu.org
2021-02-28 5:39 ` jason at gcc dot gnu.org
7 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-02-27 20:44 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90333
--- Comment #15 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jason Merrill <jason@gcc.gnu.org>:
https://gcc.gnu.org/g:5d9d6c1cd8d9f0e057b4a7a849bc765e2109137c
commit r11-7430-g5d9d6c1cd8d9f0e057b4a7a849bc765e2109137c
Author: Jason Merrill <jason@redhat.com>
Date: Fri Feb 26 05:45:02 2021 -0500
c++: Allow GNU attributes before lambda -> [PR90333]
In my 9.3/10 patch for 90333 I allowed attributes between [] and (), and
after the trailing return type, but not in the place that GCC 8 expected
them, and we've gotten several bug reports about that. So let's allow them
there, as well.
gcc/cp/ChangeLog:
PR c++/90333
* parser.c (cp_parser_lambda_declarator_opt): Accept GNU attributes
between () and ->.
gcc/testsuite/ChangeLog:
PR c++/90333
* g++.dg/ext/attr-lambda3.C: New test.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/90333] [9/10/11 Regression] Can't apply attributes to lambdas with trailing returns
[not found] <bug-90333-4@http.gcc.gnu.org/bugzilla/>
` (6 preceding siblings ...)
2021-02-27 20:44 ` cvs-commit at gcc dot gnu.org
@ 2021-02-28 5:39 ` jason at gcc dot gnu.org
7 siblings, 0 replies; 8+ messages in thread
From: jason at gcc dot gnu.org @ 2021-02-28 5:39 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90333
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Target Milestone|9.3 |9.4
Resolution|--- |FIXED
--- Comment #16 from Jason Merrill <jason at gcc dot gnu.org> ---
Fixed better for 9.4/10.3/11.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2021-02-28 5:39 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-90333-4@http.gcc.gnu.org/bugzilla/>
2020-06-25 23:34 ` [Bug c++/90333] [9 Regression] Can't apply attributes to lambdas with trailing returns ttimo at valvesoftware dot com
2021-02-26 4:12 ` [Bug c++/90333] [9/10/11 " jason at gcc dot gnu.org
2021-02-26 4:13 ` jason at gcc dot gnu.org
2021-02-26 4:15 ` jason at gcc dot gnu.org
2021-02-27 20:43 ` cvs-commit at gcc dot gnu.org
2021-02-27 20:43 ` cvs-commit at gcc dot gnu.org
2021-02-27 20:44 ` cvs-commit at gcc dot gnu.org
2021-02-28 5:39 ` 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).