This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/37969] [4.3 Regression] "-O2 -funswitch-loops" causes ICE in build_int_cst_wide, at tree.c:891 (OpenOffice.org)



------- Comment #8 from h dot mth at web dot de  2008-10-31 10:55 -------
To hide the ICE from "reduced testcase":

$ diff -u b3dgeom.3.cpp.orig b3dgeom.3.cpp
--- b3dgeom.3.cpp.orig  2008-10-31 11:52:10.000000000 +0100
+++ b3dgeom.3.cpp       2008-10-31 11:52:46.000000000 +0100
@@ -41,9 +41,9 @@
        }
        typename Traits::DifferenceType getRange() const   {
            if(isEmpty())
-             return Traits::neutral();
-           else
              return (mnMaximum - mnMinimum);
+           else
+             return Traits::neutral();
        }
     };
     struct DoubleTraits     {


-- 


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]