[Bug c++/85889] lambda expression can capture structured bindings

2025-02-01 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85889 --- Comment #17 from Jonathan Wakely --- (In reply to Ville Voutilainen from comment #5) > And the papers that changed this are > https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1091r3.html and > https://www.open-std.org/jtc1/sc22/wg21/

[Bug c++/85889] lambda expression can capture structured bindings

2025-02-01 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85889 --- Comment #16 from Jonathan Wakely --- (In reply to Jakub Jelinek from comment #12) > (In reply to Jonathan Wakely from comment #0) > > [expr.prim.lambda.capture] p8 says "If a lambda-expression explicitly > > captures an entity that is not odr

[Bug c++/85889] lambda expression can capture structured bindings

2025-02-01 Thread dangelog at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85889 --- Comment #15 from Giuseppe D'Angelo --- Unfortunately not; that is https://cplusplus.github.io/CWG/issues/2313.html .

[Bug c++/85889] lambda expression can capture structured bindings

2025-02-01 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85889 --- Comment #14 from Jakub Jelinek --- Aren't then in C++17 at least the std::tuple* using structured bindings objects (each v_i in that case is a variable) and thus entities?

[Bug c++/85889] lambda expression can capture structured bindings

2025-01-31 Thread dangelog at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85889 --- Comment #13 from Giuseppe D'Angelo --- Not sure; N4659 says https://timsong-cpp.github.io/cppwp/n4659/expr.prim.lambda.capture#4 "The identifier in a simple-capture is looked up using the usual rules for unqualified name lookup; each such l

[Bug c++/85889] lambda expression can capture structured bindings

2025-01-31 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85889 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #12

[Bug c++/85889] lambda expression can capture structured bindings

2025-01-31 Thread dangelog at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85889 --- Comment #11 from Giuseppe D'Angelo --- Sure thing! It's PR118719.

[Bug c++/85889] lambda expression can capture structured bindings

2025-01-31 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85889 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |15.0

[Bug c++/85889] lambda expression can capture structured bindings

2025-01-31 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85889 Patrick Palka changed: What|Removed |Added CC||ppalka at gcc dot gnu.org --- Comment #1

[Bug c++/85889] lambda expression can capture structured bindings

2025-01-31 Thread dangelog at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85889 --- Comment #9 from Giuseppe D'Angelo --- > For comparison, Clang doesn't warn. ... doesn't warn on (2) and (3), that is. (Those are the cases for which I think GCC is wrong at emitting the warning.)

[Bug c++/85889] lambda expression can capture structured bindings

2025-01-31 Thread dangelog at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85889 Giuseppe D'Angelo changed: What|Removed |Added CC||dangelog at gmail dot com --- Commen

[Bug c++/85889] lambda expression can capture structured bindings

2024-05-09 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85889 Marek Polacek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/85889] lambda expression can capture structured bindings

2024-05-09 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85889 --- Comment #6 from GCC Commits --- The trunk branch has been updated by Marek Polacek : https://gcc.gnu.org/g:46bafd9a6b9b776142e0b1424a6ac02e3a2fd300 commit r15-348-g46bafd9a6b9b776142e0b1424a6ac02e3a2fd300 Author: Marek Polacek Date: Fri

[Bug c++/85889] lambda expression can capture structured bindings

2022-11-01 Thread ville.voutilainen at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85889 --- Comment #5 from Ville Voutilainen --- And the papers that changed this are https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1091r3.html and https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1381r1.html

[Bug c++/85889] lambda expression can capture structured bindings

2022-11-01 Thread ville.voutilainen at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85889 Ville Voutilainen changed: What|Removed |Added Status|SUSPENDED |ASSIGNED --- Comment #4 from Ville V

[Bug c++/85889] lambda expression can capture structured bindings

2018-05-29 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85889 Jonathan Wakely changed: What|Removed |Added Status|ASSIGNED|SUSPENDED --- Comment #3 from Jonathan

[Bug c++/85889] lambda expression can capture structured bindings

2018-05-29 Thread ville.voutilainen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85889 Ville Voutilainen changed: What|Removed |Added CC||ville.voutilainen at gmail dot com

[Bug c++/85889] lambda expression can capture structured bindings

2018-05-29 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85889 Marek Polacek changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned a

[Bug c++/85889] lambda expression can capture structured bindings

2018-05-29 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85889 Marek Polacek changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|