https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114450
--- Comment #4 from Olof Gullnäs <olof.gullnas at gmail dot com> --- (In reply to Andrew Pinski from comment #2) > Reduced testcase: > ``` > > template <typename F> > void foreach(F f) {f(1);} > > void g () > { > static constexpr auto lambda_2 = [](int) { }; > auto lambda_1 = [](auto id) { lambda_2(id); }; > foreach(lambda_1); > } > ``` Nice reduction!