This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug testsuite/37561] [4.4 Regression] Revision 140405 caused g++.old-deja/g++.mike/warn1.C
- From: "janis at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Sep 2008 16:00:50 -0000
- Subject: [Bug testsuite/37561] [4.4 Regression] Revision 140405 caused g++.old-deja/g++.mike/warn1.C
- References: <bug-37561-682@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from janis at gcc dot gnu dot org 2008-09-17 16:00 -------
I tested with -m32 on powerpc64-linux, not with both -m32/-m64 which would have
caught this; I'll test with both for related patches.
The test previously used { dg-warning "" }, which matched any message from that
line. The patch, in preparation to using new versions of dg-error and
dg-warning that actually check for "warning" and "error", changed that to {
dg-error "lvalue" }, which matches the error message for -m32 but not the
warning message for -m64. It's a bug in the compiler that the error isn't
reported for -m64, and the change to the test merely detected that.
This should be a C++ bug, not a testsuite bug.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37561