This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/20995] New: [3.4 regression] ICE in const_binop, at fold-const.c:1391
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Apr 2005 15:24:42 -0000
- Subject: [Bug middle-end/20995] New: [3.4 regression] ICE in const_binop, at fold-const.c:1391
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
This little piece of code here
-----------------
template <int dim>
void test ()
{
double d;
double mu = 1;
for (unsigned int i=0; i<dim; ++i)
for (unsigned int j=0; j<dim; ++j)
for (unsigned int k=0; k<dim; ++k)
for (unsigned int l=0; l<dim; ++l)
d = (((i==k) && (j==l) ? mu : 0) +
((i==j) && (k==l) ? 1 : 0));
}
template void test<3> ();
-----------------
ICEs with gcc3.4.4pre (and apparently all older versions of the 3.4.x branch I
have):
deal.II/tests> /ices/bangerth/tmp/build-gcc-3.4/gcc-install/bin/c++ -c x.cc
x.cc: In function `void test()':
x.cc:11: internal compiler error: tree check: expected real_cst, have
integer_cst in const_binop, at fold-const.c:1391
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
On the machine I'm on right now, I don't have a 4.x compiler, so it may even be
a regression on 4.0 branch and/or mainline. It doesn't ICE gcc3.3.x, though.
W.
--
Summary: [3.4 regression] ICE in const_binop, at fold-
const.c:1391
Product: gcc
Version: 3.4.4
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P2
Component: middle-end
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: bangerth at dealii dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20995
- Follow-Ups:
- [Bug middle-end/20995] [3.4 regression] ICE in const_binop, at fold-const.c:1391
- From: bangerth at dealii dot org
- [Bug middle-end/20995] [3.4 regression] ICE in const_binop, at fold-const.c:1391
- From: pinskia at gcc dot gnu dot org
- [Bug middle-end/20995] [3.4 regression] ICE in const_binop, at fold-const.c:1391
- From: pinskia at gcc dot gnu dot org
- [Bug middle-end/20995] [3.4 regression] ICE in const_binop, at fold-const.c:1391
- From: reichelt at gcc dot gnu dot org
- [Bug middle-end/20995] [3.4 regression] ICE in const_binop, at fold-const.c:1391
- From: roger at eyesopen dot com
- [Bug driver/20995] [3.4 regression] ICE in const_binop, at fold-const.c:1391
- From: roger at eyesopen dot com
- [Bug c++/20995] [3.4 regression] ICE in const_binop, at fold-const.c:1391
- From: roger at eyesopen dot com
- [Bug c++/20995] [3.4 regression] ICE in const_binop, at fold-const.c:1391
- From: cvs-commit at gcc dot gnu dot org
- [Bug c++/20995] [3.4 regression] ICE in const_binop, at fold-const.c:1391
- From: pinskia at gcc dot gnu dot org
- [Bug c++/20995] [3.4 regression] ICE in const_binop, at fold-const.c:1391
- From: cvs-commit at gcc dot gnu dot org