Commit b661835c by Jason Merrill

update

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