typedef struct _st { int iIndex : 24; } st; void f(void) { st *next = 0; int nIndx; const static int constreg[] = { 0,}; nIndx = 0; next->iIndex = constreg[nIndx]; }
[EMAIL PROTECTED]:~$ ~/x86-linux-4.0.2/bin/gcc t2.c -O1 t2.c: In function 'f': t2.c:10: internal compiler error: in expand_shift, at expmed.c:2316 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. [EMAIL PROTECTED]:~$ ~/mainlineppc64/bin/powerpc64-linux-gnu-gcc t2.c -O1 t2.c: In function 'f': t2.c:10: internal compiler error: in expand_shift, at expmed.c:2322 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. -- Summary: [4.1/4.2/4.3 Regression] ICE in expand_shift with bit fields and expand inlining constants Product: gcc Version: 4.3.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: middle-end AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: pinskia at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31448