[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:44:00 GMT 2008
------- Comment #7 from h dot mth at web dot de 2008-10-31 10:43 -------
Created an attachment (id=16596)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16596&action=view)
more reduced testcase
With one of these changes the ICE hides.
die@ana:/tmp $ cat hide01
--- b3dgeom.3.cpp.ice 2008-10-31 11:38:37.000000000 +0100
+++ b3dgeom.3.cpp 2008-10-31 11:38:46.000000000 +0100
@@ -1,7 +1,7 @@
#include <iostream>
class B3DRange {
double mnMinimum;
- double mnMaximum;
+// double mnMaximum;
public:
double getWidth() const {
if(mnMinimum)
die@ana:/tmp $ cat hide02
--- b3dgeom.3.cpp.ice 2008-10-31 11:38:37.000000000 +0100
+++ b3dgeom.3.cpp 2008-10-31 11:39:02.000000000 +0100
@@ -4,7 +4,7 @@
double mnMaximum;
public:
double getWidth() const {
- if(mnMinimum)
+ if(!mnMinimum)
return mnMinimum;
else
return 0.0;
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37969
More information about the Gcc-bugs
mailing list