repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Dead
[official-gcc.git]
/
gomp-20050608-branch
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
nontype3.C
blob
f48d00010f46c29f583a4e0073e4f035cd473802
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";