[Bug tree-optimization/37969] [4.3 Regression] "-O2 -funswitch-loops" causes ICE in build_int_cst_wide, at tree.c:891 (OpenOffice.org)
h dot mth at web dot de
gcc-bugzilla@gcc.gnu.org
Fri Oct 31 10:57:00 GMT 2008
------- 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
More information about the Gcc-bugs
mailing list