https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86881
Nathan Sidwell <nathan at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |ASSIGNED Last reconfirmed| |2018-09-17 Assignee|unassigned at gcc dot gnu.org |nathan at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #2 from Nathan Sidwell <nathan at gcc dot gnu.org> --- No lambda's required. Just the outer one must have some kind of class type: struct Proxy { }; void Two () { auto my = Proxy (); { auto my = int (); // boom } }