OSDN Git Service

PR testsuite/25241
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.pt / nontype3.C
1 // { dg-do assemble  }
2
3 enum E { e };
4
5 template <const E* ep>
6 struct S1
7 {
8   static const char* s;
9 };
10
11 template <int D>
12 struct S2 {};
13
14 template <>
15 struct S2<1>
16 {
17   static E es[1];
18 };
19
20 struct S3
21 {
22   typedef S1<S2<1>::es> S3_Type;
23 };
24
25 E S2<1>::es[1] = {e};
26
27 template <>
28 const char* S1<S2<1>::es>::s = "abc";