[Bug libstdc++/105291] include/c++/12.0.1/debug/safe_unordered_container.h:71:28: error: captured variable '__local_end' cannot appear here

2022-04-19 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105291 Jonathan Wakely changed: What|Removed |Added Resolution|FIXED |MOVED --- Comment #6 from Jonathan

[Bug libstdc++/105291] include/c++/12.0.1/debug/safe_unordered_container.h:71:28: error: captured variable '__local_end' cannot appear here

2022-04-19 Thread sbergman at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105291 Stephan Bergmann changed: What|Removed |Added Resolution|--- |FIXED

[Bug libstdc++/105291] include/c++/12.0.1/debug/safe_unordered_container.h:71:28: error: captured variable '__local_end' cannot appear here

2022-04-17 Thread corentinjabot at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105291 corentinjabot at gmail dot com changed: What|Removed |Added CC||corentinjabot at gmail

[Bug libstdc++/105291] include/c++/12.0.1/debug/safe_unordered_container.h:71:28: error: captured variable '__local_end' cannot appear here

2022-04-16 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105291 --- Comment #3 from Jonathan Wakely --- https://github.com/cplusplus/CWG/issues/31

[Bug libstdc++/105291] include/c++/12.0.1/debug/safe_unordered_container.h:71:28: error: captured variable '__local_end' cannot appear here

2022-04-16 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105291 --- Comment #2 from Jonathan Wakely --- Clang implements the wording correctly: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2021/p2036r3.html#pnum_3 So int a = 0; [a] (decltype(a)) { }; is ill-formed now. But I'm not convinced that's a

[Bug libstdc++/105291] include/c++/12.0.1/debug/safe_unordered_container.h:71:28: error: captured variable '__local_end' cannot appear here

2022-04-16 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105291 --- Comment #1 from Jonathan Wakely --- > > + using __local_end_t = __decltype(__local_end); This code isn't valid pre-C++11 so we can just use decltype, not __decltype.