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
Formatting fixes.
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
memtemp100.C
1
// { dg-do assemble }
2
// { dg-options "" }
3
// Origin: philippeb@videotron.ca
4
5
#include <iostream>
6
7
using namespace std;
8
9
template <class T> struct traits
10
{
11
typedef long next;
12
};
13
14
15
template <class T>
16
struct c1
17
{
18
template <class U>
19
struct c2
20
{
21
c2()
22
{
23
cout << __PRETTY_FUNCTION__ << endl;
24
}
25
};
26
};
27
28
29
template <class T>
30
void foo()
31
{
32
cout << __PRETTY_FUNCTION__ << endl;
33
typename c1<typename traits<T>::next>::template c2<void>();
34
}
35
36
37
int main()
38
{
39
foo<int>();
40
}