https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110824
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |DUPLICATE --- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Reduced testcase: ``` namespace t { struct tt {}; template <int a> int get(tt b) { return 1; } } void g() { auto wrapped = [](int) { return t::tt{}; }; [&wrapped](auto t) -> decltype(get<0>(wrapped(t))) { return 1; }(1); } ``` Which makes this a dup of bug 110524. *** This bug has been marked as a duplicate of bug 110524 ***