http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52423
Bug #: 52423 Summary: [4.6 Regression] ICE in build_unary_op, at c-typeck.c:3786 Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: regression AssignedTo: unassig...@gcc.gnu.org ReportedBy: d...@gcc.gnu.org works with 4.5 branch, and trunk, fails on 4.6 branch on x86_64-linux-gnu $ gcc-4.6 -Wall xxxx.c xxxx.c: In function 'main': xxxx.c:13:2: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration] xxxx.c:13:2: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default] xxxx.c:13:2: internal compiler error: in build_unary_op, at c-typeck.c:3786 Please submit a full bug report, with preprocessed source if appropriate. //#include <stdio.h> struct p_t { volatile unsigned int ref:3; }; struct p_t p; int main(void) { printf("%p", &p.ref); return 0; }