https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82878
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org Assignee|nathan at gcc dot gnu.org |unassigned at gcc dot gnu.org --- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Started with r244728. Slightly adjusted testcase: struct S { ~S (); }; struct A { operator int (); S a; }; void bar () { void (*foo)(A) = [](A) { bar (); }; A b; if (auto c = b) foo (c); }