aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/overload20.C
blob: dde686c5c3033315518196b40f6c8958b02dcaa2 (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 ();
  void f (int);
  void g () {
    void (*p)(char *) = f;	// ERROR - no matching function in scope
  }
};