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
Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git]
/
old-autovect-branch
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
memtemp100.C
blob
c0495233af81e661aa7af05978e3856d03bf11ad
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
}