void f (char *);
void f (int);
struct A {
- void f ();
- void f (int);
+ void f (); // ERROR - candidate
+ void f (int); // ERROR - candidate
void g () {
void (*p)(char *) = f; // ERROR - no matching function in scope
}
public:
void f1a() { ok += 3; }
void f1b() { ok += 5; }
- void f2a() { ok += 7; }
+ void f2a() { ok += 7; } // gets bogus error XFAIL *-*-*
void f2b() { }
const static void (*table[2][2])();
void main();
void h(double dx);
};
-void Fooey::f(char*) { }
-void Fooey::f(int) { }
-void Fooey::f(float) { }
+void Fooey::f(char*) { } // ERROR - candidate
+void Fooey::f(int) { } // ERROR - candidate
+void Fooey::f(float) { } // ERROR - candidate
void Fooey::h(double zahl) { }
int main() {
// Build don't link:
-template <class T> void foo();
+template <class T> void foo(); // ERROR - candidate
void (*bar)() = foo<void>;
void (*baz)() = foo; // ERROR - can't deduce T