public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/20995] New: [3.4 regression] ICE in const_binop, at fold-const.c:1391
@ 2005-04-13 15:24 bangerth at dealii dot org
  2005-04-13 15:29 ` [Bug middle-end/20995] " bangerth at dealii dot org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: bangerth at dealii dot org @ 2005-04-13 15:24 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2005-04-25 23:33 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-13 15:24 [Bug middle-end/20995] New: [3.4 regression] ICE in const_binop, at fold-const.c:1391 bangerth at dealii dot org
2005-04-13 15:29 ` [Bug middle-end/20995] " bangerth at dealii dot org
2005-04-13 17:50 ` pinskia at gcc dot gnu dot org
2005-04-13 18:59 ` pinskia at gcc dot gnu dot org
2005-04-14  8:40 ` reichelt at gcc dot gnu dot org
2005-04-23 16:25 ` roger at eyesopen dot com
2005-04-23 16:58 ` [Bug driver/20995] " roger at eyesopen dot com
2005-04-23 16:58 ` [Bug c++/20995] " roger at eyesopen dot com
2005-04-25 19:59 ` cvs-commit at gcc dot gnu dot org
2005-04-25 20:23 ` pinskia at gcc dot gnu dot org
2005-04-25 23:33 ` cvs-commit at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).