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

           Summary: [4.6 Regression] PRE ICE in fold_convert_loc
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: ada
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: ja...@gcc.gnu.org


int
foo (void *x, int y)
{
  long long a = 1, *b;
  double *c;
  if (y)
    {
      b = (long long *) x;
      while (b)
        a *= *b++;
    }
  else
    {
      c = (double *) x;
      while (c)
        a *= *c++;
    }
  return a;
}

ICEs at -O2:
rh676874.c: In function ‘foo’:
rh676874.c:2:1: internal compiler error: in fold_convert_loc, at
fold-const.c:1898
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

starting with http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=161655

Reply via email to