1 // PR c++/23099 2 3 struct Base { 4 int x; 5 }; 6 7 template <typename T> 8 struct A { 9 static const int N = sizeof(static_cast<Base*>(T())); 10 }; 11 12 struct Derived : Base { 13 A<Derived*> a; 14 }; 15