[Bug ada/47743] New: [4.6 Regression] PRE ICE in fold_convert_loc

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Feb 15 00:20:00 GMT 2011


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: unassigned@gcc.gnu.org
        ReportedBy: jakub@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



More information about the Gcc-bugs mailing list