https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78708
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2016-12-09 Ever confirmed|0 |1 --- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Ok, just verified this is already older problem e.g. with UBSAN_VPTR internal call. Testcase: cp -a .../gcc/testsuite/g++.dg/ubsan/vptr-11.C . ./xg++ -B ./ -c -O2 -fsanitize=vptr vptr-11.C -o vptr-11.o -flto ./xg++ -B ./ -r -O2 -o vptr-11.ro vptr-11.o -flto -nostdlib vptr-11.C: In function ‘foo’: vptr-11.C:63:8: internal compiler error: in expand_UBSAN_VPTR, at internal-fn.c:356 p->f (); ^ 0xa8178e expand_UBSAN_VPTR ../../gcc/internal-fn.c:356 0xa8b0a6 expand_internal_call(internal_fn, gcall*) ../../gcc/internal-fn.c:2783 0xa8b0d1 expand_internal_call(gcall*) ../../gcc/internal-fn.c:2791 0x7c941f expand_call_stmt ../../gcc/cfgexpand.c:2569 0x7ccc8e expand_gimple_stmt_1 ../../gcc/cfgexpand.c:3571 0x7cd365 expand_gimple_stmt ../../gcc/cfgexpand.c:3737 0x7d4451 expand_gimple_basic_block ../../gcc/cfgexpand.c:5744 0x7d5e59 execute ../../gcc/cfgexpand.c:6355 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. lto-wrapper: fatal error: ./xg++ returned 1 exit status compilation terminated. /usr/bin/ld: lto-wrapper failed collect2: error: ld returned 1 exit status