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
2014-01-30 Alangi Derick <alangiderick@gmail.com>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
template-id-1.C
blob
60ce4e7ffb22e4e8704d70c9cfcd9c10668bd6d4
1
// Copyright (C) 2002 Free Software Foundation
2
// Origin: C++/1058
3
// Contributed by Gabriel Dos Reis <gdr@integrable-solutions.net>
4
// { dg-do compile }
5
6
struct A {
7
typedef int Y;
8
typedef double Z;
9
};
10
11
struct B {
12
template<typename T>
13
void func(typename T::Y, typename T::Z) { }
14
};
15
16
template<typename T>
17
struct X {
18
void gunc();
19
};
20
21
template<typename T>
22
void X<T>::gunc()
23
{
24
B b;
25
b.func<A>(0, 3.);
26
}
27
28
int main()
29
{
30
X<int> x;
31
x.gunc();
32
return 0;
33
}