The attached file causes an ICE with gcc-4.3.2 and gcc-4.3.3 on at least two targets (ix86 Linux and Blackfin) when compiled with -O2.
bug.i: In function 'foo': bug.i:18: internal compiler error: in get_addr_dereference_operands, at tree-ssa-operands.c:1698 This happens during the vrp2 pass: ber...@beaker /local/blackfin/b-4.3/gcc $ tail bug.i.115t.vrp2 prephitmp.29_38: [0, 1] SMT.36_57: VARYING Substituing values and folding statements Folded statement: pretmp.28_29 = *D.1312_16; into: pretmp.28_29 = *&cpumask.bits[0]; -- Summary: ICE on valid during vrp2 Product: gcc Version: 4.3.3 Status: UNCONFIRMED Severity: major Priority: P3 Component: tree-optimization AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: bernds_cb1 at t-online dot de GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39041