summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/overload20.C
blob: f5db6a20fce618a3ed71c375066f5259ccef9504 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// { dg-do assemble  }
// Bug: this code causes an internal compiler error 4.

void f (char *);
void f (int);
struct A {
  void f ();			// { dg-error "" } candidate
  void f (int);			// { dg-error "" } candidate
  void g () {
    void (*p)(char *) = f;	// { dg-error "" } no matching function in scope
  }
};