OSDN Git Service

2014-02-26 Fabien Chene <fabien@gcc.gnu.org>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / template / static24.C
1 template<typename> struct A;
2
3 template<> struct A<char>
4 {
5   static const char i = 1;
6 };
7
8 template<typename T> struct B
9 {
10   static const int j = A<T>::i;
11   static const int k = int(j);
12   int x[k];
13 };
14
15 B<char> b;