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
FSF GCC merge 02/23/03
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
explicit17.C
blob
4abd17e49391eace104258ec98daf0642be0e6d6
1
// Build don't link:
2
// GROUPS passed templates
3
// Special g++ Options: -ansi -pedantic-errors -w
4
template <class T, class U>
5
void foo(U u, T t);
6
7
template <class T>
8
void foo(T t);
9
10
template <class T>
11
struct S {};
12
13
template <class T>
14
void foo(const S<T>&);
15
16
void bar()
17
{
18
void (*fn)(double, int) =
19
(void (*)(double, int)) &foo<int>;
20
void (*fn2)(double) = foo<double>;
21
foo<int>(3, 3.0);
22
foo<int>(S<int>());
23
}