This might be related to PR44941. Command line: $ gcc -O2 testcase.c
Output: $ gcc -O2 testcase.c testcase.c: In function 'foo': testcase.c:22:1: internal compiler error: in get_constraint_for_component_ref, at tree-ssa-structalias.c:3184 Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. Tested revisions: r162193 - crash r162056 - crash r161659 - crash r161170 - OK -- Summary: [4.6 Regression] ICE: in get_constraint_for_component_ref, at tree-ssa- structalias.c:3184 Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: zsojka at seznam dot cz GCC host triplet: x86_64-pc-linux-gnu GCC target triplet: x86_64-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44946