https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124338
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|Inconsistent const for |Inconsistent const for
|capture in generic lambda |capture in lambda in an
|in an sizeof |sizeof
Known to fail| |4.9.0
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Here is a better testcase for C++14:
```
struct X {
short f();
int f() const;
};
void g(X x) {
[x1 = x](int) {
static_assert (sizeof(x1.f()) == sizeof(short),"");
};
}
```
The issues is unrelated to generic as shown above.