https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66233

            Bug ID: 66233
           Summary: internal compiler error: in expand_fix, at
                    optabs.c:5358
           Product: gcc
           Version: 4.9.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: usignao at gmail dot com
  Target Milestone: ---

Hello! The error is produced by the following (invalid) code

/* oops.c */
unsigned int pData[5];
void f() {
        int i;
        for(i=0; i<5; i++) {
                pData[i] = (float) i;
        }
}

$ gcc -O3 -Wall -Wextra -o oops.o -c oops.c
oops.c: In function ‘f’:
oops.c:6:12: internal compiler error: in expand_fix, at optabs.c:5358
   pData[i] = (float) i;
            ^


No warnings are given. I'm on Linux x64, gcc version is 4.9.2, but according to
the godbolt.org all the versions from 4.8 up to 5.1.0 are also affected.

Reply via email to