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 middle-end/32176] [4.3 Regression] ICE tree-type mismatch: expected integer_cst, have plus_expr in int_cst_value, at tree.c:7720



------- Comment #8 from fxcoudert at gcc dot gnu dot org  2007-06-20 20:21 -------
I can reproduce this 4.3 regression with the following C testcase:

$ cat w.c
void foo (void)
{
  int i, m;
  float xa[21];
  m = 0;
  while (1)
  {
    i = 0;
    while (1)
    {
      if (xa[(long int)i] == xa[(long int)(i+m)])
        _gfortran_abort ();
      if (i == 10)
        break;
      i++;
    }
    if (m == 10)
      break;
    m++;
  }
}
$ gcc -O2 -fprefetch-loop-arrays -m64 w.c
w.c: In function ?foo?:
w.c:2: internal compiler error: tree check: expected integer_cst, have nop_expr
in int_cst_value, at tree.c:7720


-- 

fxcoudert at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |major
           Priority|P3                          |P1
   Last reconfirmed|2007-06-12 15:44:47         |2007-06-20 20:21:35
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32176


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