This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/37969] [4.3 Regression] "-O2 -funswitch-loops" causes ICE in build_int_cst_wide, at tree.c:891 (OpenOffice.org)
- From: "h dot mth at web dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Oct 2008 10:55:57 -0000
- Subject: [Bug tree-optimization/37969] [4.3 Regression] "-O2 -funswitch-loops" causes ICE in build_int_cst_wide, at tree.c:891 (OpenOffice.org)
- References: <bug-37969-13159@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot 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