// PR c++/23099 struct Base { int x; }; template struct A { static const int N = sizeof(static_cast(T())); }; struct Derived : Base { A a; };