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

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Apr 16 13:39:16 GMT 2022


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

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
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 good change to make as a DR.


More information about the Gcc-bugs mailing list