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
/
overload20.C
blob
998f6a7466cde15c43cf4bfdbccc0c8cebb720ad
1
// Bug: this code causes an internal compiler error 4.
2
3
void f (char *);
4
void f (int);
5
struct A {
6
void f (); // ERROR - candidate
7
void f (int); // ERROR - candidate
8
void g () {
9
void (*p)(char *) = f; // ERROR - no matching function in scope
10
}
11
};