Commit 0881d223 by Nathan Sidwell Committed by Nathan Sidwell

rfg4.C: Revert erroneous change, add -w.

	* g++.old-deja/g++.jason/rfg4.C: Revert erroneous change, add -w.
	* g++.old-deja/g++.jason/rfg5.C: Likewise.

From-SVN: r29268
parent f6fbeda8
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.
......
// 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
}
// 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
}
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