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: "micis at gmx dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Aug 2005 14:08:10 -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 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