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 micis at gmx dot de  2005-08-01 14:08 -------
double foo(double a)
{
    double b;
    int i;
    for (i = 0; i < 10; i++)
    {
        b = a;
        a -= 1.0;
    }
    return b;
}

This loop from comment#3 gives:

gcc41i -O2 -ffast-math -ftree-vectorize -o bug23173.o -c bug23173.c
bug23173.c: In function 'foo':
bug23173.c:2: internal compiler error: tree check: expected real_cst, have 
integer_cst in const_binop, at fold-const.c:1512
Please submit a full bug report, with preprocessed source if appropriate.


-- 


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]