OSDN Git Service

* parser.c (cp_parser_class_specifier): Set class location to that
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / template / static31.C
1 // PR c++/32674
2
3 class C
4 {
5   static const int j = 3;
6 };
7
8 template<int> class A
9 {
10   static const int i1;
11   static const int i2;
12   static const int i3;
13   static const int i4;
14 };
15
16 template<int N> const int A<N>::i1(C::j);
17 template<int N> const int A<N>::i2 = C::j;
18 template<int N> const int A<N>::i3(C::j, 5); // { dg-error "compound expression" }
19 template<int N> const int A<N>::i4 = (C::j, 7);