update
authorJason Merrill <jason@gcc.gnu.org>
Mon, 18 Jan 1999 21:42:34 +0000 (16:42 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 18 Jan 1999 21:42:34 +0000 (16:42 -0500)
From-SVN: r24751

gcc/testsuite/g++.old-deja/g++.jason/overload20.C
gcc/testsuite/g++.old-deja/g++.mike/p10769a.C
gcc/testsuite/g++.old-deja/g++.mike/pmf3.C
gcc/testsuite/g++.old-deja/g++.pt/overload5.C

index dde686c5c3033315518196b40f6c8958b02dcaa2..998f6a7466cde15c43cf4bfdbccc0c8cebb720ad 100644 (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
   }
index ae55c24895a1affadddd7f2e3e3a7cae988e5afc..f5ff345a3fd36e3a03d5b1b1d019308561861e2a 100644 (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();
index 24753eb1f9a2382c5a399e374761a5e48e7e1691..b38f0b7d16b8bc153ef4c4ed4b5a1406fd4f986f 100644 (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() {
index 73bf5354221f1449d87212dac84517125855f8e8..058f4f4325cd8641e82d16b8c87e48f64c448b79 100644 (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