Sign in
gnu
/
gcc
/
609d1c1bf0472f9d9415b0b124603348dbcd9e4e
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
overload20.C
blob: 998f6a7466cde15c43cf4bfdbccc0c8cebb720ad [
file
] [
log
] [
blame
]
// Bug: this code causes an internal compiler error 4.
void
f
(
char
*);
void
f
(
int
);
struct
A
{
void
f
();
// ERROR - candidate
void
f
(
int
);
// ERROR - candidate
void
g
()
{
void
(*
p
)(
char
*)
=
f
;
// ERROR - no matching function in scope
}
};