summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/overload20.C
blob: 998f6a7466cde15c43cf4bfdbccc0c8cebb720ad (plain)
1
2
3
4
5
6
7
8
9
10
11
// 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
  }
};