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
/
explicit-args4.C
blob
c64a085edb64de2d015cbd37e627840015a2a321
1
// PR c++/48883
2
// { dg-do link }
3
4
template<typename T>
5
T myMax(T a, T b) {
6
if(a < b) return a;
7
return b;
8
}
9
10
int main() {
11
bool even = true;
12
int (*fp)(int, int);
13
fp = even ? myMax<int> : myMax<int>; /* yields link error */
14
}