This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/24227] [4.1 Regression] ICE in compare_values, at tree-vrp.c:415
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Oct 2005 12:45:28 -0000
- Subject: [Bug middle-end/24227] [4.1 Regression] ICE in compare_values, at tree-vrp.c:415
- References: <bug-24227-10053@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #6 from rguenth at gcc dot gnu dot org 2005-10-07 12:45 -------
In fold_binary (fold-const.c:7122) we fold
op0 == (x, op1)
to
(x, op0 == op1)
but in creation of the new EQ_EXPR we use trees which have NOPs
stripped, so we end up with a pointer and an integer type for the
comparison.
I have a fix which fold_converts one type to the other.
Richard.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |rguenth at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
Last reconfirmed|2005-10-06 13:22:47 |2005-10-07 12:45:28
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24227