This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/19355] [4.0 Regression] ICE: tree check at c-common.c:2332
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Jan 2005 15:04:41 -0000
- Subject: [Bug c++/19355] [4.0 Regression] ICE: tree check at c-common.c:2332
- References: <20050110094605.19355.micis@gmx.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-01-10 15:04 -------
Confirmed, reduced testcase:
typedef bool Boolean;
extern Boolean is_nil ();
void f(void)
{
unsigned int ilen;
if(!((ilen > 0 ? !is_nil () : 1))) {}
}
Note if we remove the typedef it works. It also worked in 20050105.
I think the following patch caused it:
2005-01-05 Roger Sayle <roger@eyesopen.com>
PR middle-end/19100
* c-common.c: Include real.h.
(c_common_truthvalue_conversion): Avoid destructively modifying expr.
Correctly handle TREE_CONSTANT_OVERFLOW for INTEGER_CST.
Correctly handle TREE_CONSTANT_OVERFLOW and NaNs for REAL_CST.
* Makefile.in (c-common.o): Update dependencies.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |roger at eyesopen dot com
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2005-01-10 15:04:40
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19355