FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / overload20.C
blob998f6a7466cde15c43cf4bfdbccc0c8cebb720ad
1 // Bug: this code causes an internal compiler error 4.
3 void f (char *);
4 void f (int);
5 struct A {
6   void f ();                    // ERROR - candidate
7   void f (int);                 // ERROR - candidate
8   void g () {
9     void (*p)(char *) = f;      // ERROR - no matching function in scope
10   }