http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55355
Mikael Pettersson <mikpe at it dot uu.se> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mikpe at it dot uu.se --- Comment #12 from Mikael Pettersson <mikpe at it dot uu.se> 2012-11-22 23:25:45 UTC --- It's a HWI32 bug. The ICE reproduces on x86 with 4.6 branch if you build a 32-bit compiler that targets 32-bit x86; passing -m32 to a 64-bit compiler won't trigger it. The ICE was silenced on 32-bit x86 for 4.7 by r176871: http://gcc.gnu.org/ml/gcc-cvs/2011-07/msg01139.html which is when HJ made 32-bit x86 HWI64. The ICE reproduces with current 4.7 and 4.8 in 32-bit compilers with HWI32 targets; for instance an i686 to m68k linux cross says: pr55355.cc: In member function 'void C::funcC()': pr55355.cc:34:1: internal compiler error: in tree_low_cst, at tree.c:6603 } ^ 0x856174f tree_low_cst(tree_node const*, int) /mnt/scratch/gcc-4.8-20121118/gcc/tree.c:6603 0x856179e int_bit_position(tree_node const*) /mnt/scratch/gcc-4.8-20121118/gcc/tree.c:2480 0x846af0b type_internals_preclude_sra_p /mnt/scratch/gcc-4.8-20121118/gcc/tree-sra.c:719 0x846af0b type_internals_preclude_sra_p /mnt/scratch/gcc-4.8-20121118/gcc/tree-sra.c:678 0x8471e1f find_param_candidates /mnt/scratch/gcc-4.8-20121118/gcc/tree-sra.c:3627 0x8471e1f ipa_early_sra /mnt/scratch/gcc-4.8-20121118/gcc/tree-sra.c:4928 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <http://gcc.gnu.org/bugs.html> for instructions.