https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124338
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Looks like the issue is only inside sizeof though as this works correctly:
```
struct X {
float f();
int f() const;
};
void g(X x) {
auto t = [x](auto) {decltype(x.f()) x1 = 1; return x1;}(1);
float &tt = t;
}
```
