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
2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
crash54.C
blob
72f92d12818b932bdade08f965e60b4c58216eaf
1
// { dg-do assemble }
2
// Origin: Mark Mitchell <mark@codesourcery.com>
3
4
template <class T>
5
int g (T);
6
7
int j = g (3);
8
9
template <class T>
10
inline T f (T)
11
{
12
return 2;
13
}
14
15
template <class T>
16
struct S
17
{
18
static const int i;
19
};
20
21
template <class T>
22
const int S<T>::i = f (3);
23
24
template <class T>
25
int g (T)
26
{
27
return S<double>::i;
28
}
29