8sa1-gcc/gcc/testsuite/g++.old-deja/g++.jason/overload20.C
Jeff Law 921e5a0eb4 Initial revision
From-SVN: r14840
1997-08-19 01:34:40 -06:00

12 lines
216 B
C

// Bug: this code causes an internal compiler error 4.
void f (char *);
void f (int);
struct A {
void f ();
void f (int);
void g () {
void (*p)(char *) = f; // ERROR - no matching function in scope
}
};