https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95017
Iain Sandoe <iains at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |DUPLICATE Status|UNCONFIRMED |RESOLVED --- Comment #2 from Iain Sandoe <iains at gcc dot gnu.org> --- thanks for the report! (an odd case where it's a single line loop which triggers the reference-capture-lifetime-extension). As luck would have it, this was fixed on master yesterday - and I will be back porting the change to 10.2. *** This bug has been marked as a duplicate of bug 95003 ***