------- 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

Reply via email to