]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
rfg4.C: Revert erroneous change, add -w.
authorNathan Sidwell <nathan@acm.org>
Fri, 10 Sep 1999 11:05:30 +0000 (11:05 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Fri, 10 Sep 1999 11:05:30 +0000 (11:05 +0000)
* g++.old-deja/g++.jason/rfg4.C: Revert erroneous change, add -w.
* g++.old-deja/g++.jason/rfg5.C: Likewise.

From-SVN: r29268

gcc/testsuite/ChangeLog
gcc/testsuite/g++.old-deja/g++.jason/rfg4.C
gcc/testsuite/g++.old-deja/g++.jason/rfg5.C

index 3e63754394eb44df98b1e5d1134e0caec2cfbc39..ed20451533a227a151f777eb8a058de57a8e6c54 100644 (file)
@@ -1,3 +1,8 @@
+Fri Sep 10 11:21:25 BST 1999  Nathan Sidwell  <nathan@acm.org>
+
+       * g++.old-deja/g++.jason/rfg4.C: Revert erroneous change, add -w.
+       * g++.old-deja/g++.jason/rfg5.C: Likewise.
+
 Thu Sep  9 10:40:36 1999  Richard Henderson  <rth@cygnus.com>
 
        * g++.old-deja/g++.other/delete6.C: Use size_t with operator new.
index 1f5805531bbddbc492542a619b41d63d366f82f1..a86e9293bdc9bb41730c6d8b0e910d1b0d1abcf7 100644 (file)
@@ -1,5 +1,6 @@
 // Bug: f1 and f2 are treated as overloaded when they aren't.
 // Build don't link:
+// Special g++ Options: -pedantic -errors -w
 
 int i;
 void f1(double) { }
@@ -8,6 +9,5 @@ void f2(double) { }
 void
 test ()
 {
-  void (*ptr) (double);
-  ptr = i ? f1 : f2;           // gets bogus error - improper overloading
+  i ? f1 : f2;         // gets bogus error - improper overloading
 }
index ca3539ba955db9e58c01d50c5105f41003ed174f..55aea0011ff3562a3f0e01be636e15befd3cf302 100644 (file)
@@ -1,10 +1,11 @@
 // Bug: func is treated as an overloaded function when it isn't.
 // Build don't link:
+// Special g++ Options: -pedantic -errors -w
 
 int *func () { return 0; }
 
 void
 test ()
 {
-  int *(*p)() = *func;                 // gets bogus error - improper overloading
+  *func;                       // gets bogus error - improper overloading
 }