This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/37683] [4.4 Regression]: Revision 140780 caused g++.dg/warn/Wparentheses-3.C
- From: "bonzini at gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Sep 2008 15:05:55 -0000
- Subject: [Bug c++/37683] [4.4 Regression]: Revision 140780 caused g++.dg/warn/Wparentheses-3.C
- References: <bug-37683-682@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from bonzini at gnu dot org 2008-09-30 15:05 -------
> Linux/ia32 and --enable-checking=assert may trigger this bug.
Well, your own Linux/x86-64 builds do not have this failure, neither normally
nor for -m32. Either this bug is invalid, or it is a wrong-code somewhere
else. So, no "may"s please.
Can you put a breakpoint in warning_at for the empty-body warning, and check
what's the value of warn_empty_body?
If warn_empty_body is 1, can you check where it is set to 1? It should not be
unless -Wempty-body or -Wextra are given. If it is -1, likewise, it should
have been set to 0 or 1 in opts.c.
If it is 0, can you test the value of "option_enabled (OPT_Wempty_body)"? It
should also be 0, or option_enabled is miscompiled.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37683