https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85889
--- Comment #16 from Jonathan Wakely <redi at gcc dot gnu.org> --- (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-usable or captures a structured binding > > (explicitly or implicitly), the program is ill-formed." > > Is that something that was really in C++17? > That wording isn't in n4660.pdf and git blame seems to suggest it came from > P0588R1 which was a C++20 paper. It was approved as a Defect Report at the Nov 2017 Albuquerque meeting: "Move to accept the changes in P0588R1 (Simplifying implicit lambda capture) as a Defect Report and apply them to the C++ working paper."