https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63520
--- Comment #8 from Markus Trippelsdorf <trippels at gcc dot gnu.org> --- (In reply to Jakub Jelinek from comment #7) > That backtrace is not related to what happened at all, the thing is just > that cc1plus ICEd and the gcc driver decided (incorrectly) to emit backtrace > for where it caught the signal. You really need to attach debugger to the > segfaulting cc1plus to see where it crashed. OK. process 16131 is executing new program: /home/trippels/gcc_build_dir/prev-gcc/cc1plus Program received signal SIGSEGV, Segmentation fault. [Switching to process 16131] 0x0000000010ce6ac8 in wi::fits_to_tree_p<generic_wide_int<wide_int_ref_storage<false> > > (x=..., type=0x3fffac28fd50) at ../../gcc/gcc/tree.h:4757 4757 wi::fits_to_tree_p (const T &x, const_tree type) (gdb) bt #0 0x0000000010ce6ac8 in wi::fits_to_tree_p<generic_wide_int<wide_int_ref_storage<false> > > (x=..., type=0x3fffac28fd50) at ../../gcc/gcc/tree.h:4757 #1 0x0000000010cd6bc0 in force_fit_type (type=0x3fffac28fd50, cst=..., overflowable=<optimized out>, overflowed=<optimized out>) at ../../gcc/gcc/tree.c:1237 #2 0x0000000010656da0 in fold_negate_const (arg0=arg0@entry=0x3fffa4d90c78, type=type@entry=0x3fffac28fd50) at ../../gcc/gcc/fold-const.c:15423 #3 0x000000001068d50c in fold_negate_expr (loc=loc@entry=0, t=t@entry=0x3fffa4d90c78) at ../../gcc/gcc/fold-const.c:555 #4 0x000000001068f0d8 in negate_expr (t=0x3fffa4d90c78) at ../../gcc/gcc/fold-const.c:775 #5 0x000000001066bbfc in fold_binary_loc (loc=loc@entry=0, code=code@entry=MINUS_EXPR, type=type@entry=0x3fffac28fd50, op0=op0@entry=0x3fffa56ccbc0, op1=op1@entry=0x3fffa4d90c78) at ../../gcc/gcc/fold-const.c:10450 #6 0x000000001067d918 in fold_build2_stat_loc (loc=<optimized out>, code=<optimized out>, type=0x3fffac28fd50, op0=0x3fffa56ccbc0, op1=0x3fffa4d90c78) at ../../gcc/gcc/fold-const.c:14231 #7 0x0000000010735418 in generic_simplify (loc=<optimized out>, code=<optimized out>, type=0x3fffac28fd50, op0=0x3fffa56ccb80, op1=<optimized out>) at generic-match.c:3194 #8 0x0000000010668164 in fold_binary_loc (loc=loc@entry=0, code=code@entry=PLUS_EXPR, type=type@entry=0x3fffac28fd50, op0=op0@entry=0x3fffa56ccb80, op1=op1@entry=0x3fffa56ccba0) at ../../gcc/gcc/fold-const.c:9729