Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.jason/overload20.C

raw
1 // { dg-do assemble }
2 // Bug: this code causes an internal compiler error 4.
3
4 void f (char *);
5 void f (int);
6 struct A {
7 void f (); // { dg-message "" } candidate
8 void f (int); // { dg-message "" } candidate
9 void g () {
10 void (*p)(char *) = f; // { dg-error "" } no matching function in scope
11 }
12 };