This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/23173] ICE: tree check: expected real_cst, have integer_cst in const_binop, at fold-const.c:1512
- From: "falk at debian dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Aug 2005 11:56:52 -0000
- Subject: [Bug tree-optimization/23173] ICE: tree check: expected real_cst, have integer_cst in const_binop, at fold-const.c:1512
- References: <20050801112100.23173.micis@gmx.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From falk at debian dot org 2005-08-01 11:56 -------
(In reply to comment #2)
> This is a duplicate of PR 19899.
> There are several loops in the testcase with a floating-point loop variable
> and a test >= 0. Removing them makes the code compile.
Are you sure? I also get an ICE with this test case, which does not contain
FP comparisons:
double coulomb_F_recur(double lam_min) {
double fcl;
int k;
for (k = 0; k < 10; k++) {
fcl = lam_min;
lam_min -= 1.0;
}
return fcl;
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23173