public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/104411] New: Cannot capture by reference using braced initializer
@ 2022-02-06 19:54 oliver.rosten at googlemail dot com
2022-02-06 20:51 ` [Bug c++/104411] " redi at gcc dot gnu.org
2022-02-08 14:58 ` ppalka at gcc dot gnu.org
0 siblings, 2 replies; 3+ messages in thread
From: oliver.rosten at googlemail dot com @ 2022-02-06 19:54 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104411
Bug ID: 104411
Summary: Cannot capture by reference using braced initializer
Product: gcc
Version: 11.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: oliver.rosten at googlemail dot com
Target Milestone: ---
int bar{};
auto f = [b{bar}](){}; // fine
auto g = [&b=bar](){}; // fine
auto h = [&b{bar}](){}; // error
https://godbolt.org/z/aqMb8K9Tv
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/104411] Cannot capture by reference using braced initializer
2022-02-06 19:54 [Bug c++/104411] New: Cannot capture by reference using braced initializer oliver.rosten at googlemail dot com
@ 2022-02-06 20:51 ` redi at gcc dot gnu.org
2022-02-08 14:58 ` ppalka at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: redi at gcc dot gnu.org @ 2022-02-06 20:51 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104411
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2022-02-06
Keywords| |rejects-valid
Ever confirmed|0 |1
Status|UNCONFIRMED |NEW
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/104411] Cannot capture by reference using braced initializer
2022-02-06 19:54 [Bug c++/104411] New: Cannot capture by reference using braced initializer oliver.rosten at googlemail dot com
2022-02-06 20:51 ` [Bug c++/104411] " redi at gcc dot gnu.org
@ 2022-02-08 14:58 ` ppalka at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: ppalka at gcc dot gnu.org @ 2022-02-08 14:58 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104411
Patrick Palka <ppalka at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ppalka at gcc dot gnu.org
Resolution|--- |DUPLICATE
Status|NEW |RESOLVED
--- Comment #1 from Patrick Palka <ppalka at gcc dot gnu.org> ---
dup
*** This bug has been marked as a duplicate of bug 95069 ***
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-02-08 14:58 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-06 19:54 [Bug c++/104411] New: Cannot capture by reference using braced initializer oliver.rosten at googlemail dot com
2022-02-06 20:51 ` [Bug c++/104411] " redi at gcc dot gnu.org
2022-02-08 14:58 ` ppalka 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).