Commit b661835c by Jason Merrill

update

From-SVN: r24751
parent e6f62286
......@@ -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
}
......
......@@ -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();
......
......@@ -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() {
......
// 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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment