https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86429
--- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> --- Reduced: struct A { int i; constexpr int f(const int&) const { return i; } }; void g() { constexpr A a = { 42 }; [&](auto x) { constexpr auto y = a.f(x); }(24); }