This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]