------- Comment #6 from pinskia at gcc dot gnu dot org  2007-07-30 14:05 -------
And here is a patch which fixes the ICE:
Index: fold-const.c
===================================================================
--- fold-const.c        (revision 127042)
+++ fold-const.c        (working copy)
@@ -1382,7 +1382,7 @@
        {
          tem = strip_float_extensions (t);
          if (tem != t && negate_expr_p (tem))
-           return negate_expr (tem);
+           return fold_convert (type, negate_expr (tem));
        }
       break;



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|fortran                     |middle-end


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32935

Reply via email to