Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/template/static31.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 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); |