From-SVN: r24751
This commit is contained in:
Jason Merrill 1999-01-18 16:42:34 -05:00
parent e6f622865f
commit b661835c07
4 changed files with 7 additions and 7 deletions

View File

@ -3,8 +3,8 @@
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
}

View File

@ -9,7 +9,7 @@ class A {
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();

View File

@ -5,9 +5,9 @@ struct Fooey {
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() {

View File

@ -1,6 +1,6 @@
// 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