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++.jason
/
template9.C
blob
80fd8c9775ba2d1f7605d97c1a1d51c242b34fed
1
// PRMS Id: 4864
2
// Bug: g++ can't deal with a guiding declaration which comes before the
3
// template.
4
// Build don't link:
5
6
void f (const int&, const int&);
7
template <class T> void f (const T&, const T&) { }
8
9
void g (int a)
10
{
11
f (a,a); // gets bogus error - two identical candidates
12
}