https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85889
Ville Voutilainen <ville.voutilainen at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|SUSPENDED |ASSIGNED --- Comment #4 from Ville Voutilainen <ville.voutilainen at gmail dot com> --- Clang and MSVC now accept the code in their C++20 modes. Close as invalid? Or does someone want to fix this for the C++17 and below modes only? I don't suppose we ever decided in the committee to make this a DR. [expr.prim.lambda.capture]/4 says: "The identifier in a simple-capture shall denote a local entity (6.5.3, 6.1)." 6.1 specifies structured bindings to be local entities, so capturing them is now supported.