OSDN Git Service

2010-02-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / template / pr28284.C
1 /* { dg-do compile } */
2
3 template<int> struct A
4 {
5   static const int i=x; /* { dg-error "was not declared in this scope" } */
6   static const int j, k;
7 };
8
9 template<int N> const int A<N>::j = i;
10 template<int N> const int A<N>::k = j;
11
12 A<0> a;