OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
cp/ChangeLog
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.other
/
instan1.C
1
// { dg-do link }
2
// { dg-options "-fno-implicit-templates" }
3
// Origin: Mark Mitchell <mark@codesourcery.com>
4
5
template <class T>
6
struct U {
7
static int j;
8
};
9
10
template <class T>
11
struct S {
12
static const int i = 7;
13
};
14
15
template <class T>
16
const int S<T>::i;
17
18
template <class T>
19
int U<T>::j = S<T>::i + 5;
20
21
template int U<double>::j;
22
23
int main () {
24
}