[Bug tree-optimization/23173] ICE: tree check: expected real_cst, have integer_cst in const_binop, at fold-const.c:1512

falk at debian dot org gcc-bugzilla@gcc.gnu.org
Mon Aug 1 11:56:00 GMT 2005


------- 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



More information about the Gcc-bugs mailing list