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++.law
/
arg3.C
blob
c984d3aa23e652947da82670956b6d66d97236e8
1
// Build don't link:
2
// GROUPS passed arg-matching
3
typedef void* Ptr;
4
5
6
void func(int, const Ptr& p);
7
8
template <class T> void func(T, const Ptr& p);
9
10
11
Ptr& return_ref();
12
13
14
int main()
15
{
16
char* x;
17
18
func(x,return_ref()); // bug:
19
// call of func(int, const Ptr&)
20
// instead of func(char*,const Ptr&)
21
22
}