OSDN Git Service

PR c++/39055
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / template / static13.C
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 };