https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69729
Bug ID: 69729 Summary: [6 regression] [CHKP] internal compiler error: Segmentation fault Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: ienkovich at gcc dot gnu.org Target Milestone: --- Here is a test which fails when compiled with both LTO and CHKP enabled: >cat test.i class cl1 { public: virtual ~cl1(); }; class cl2 { public: virtual ~cl2(); }; class cl3 : cl1, cl2 { }; class cl4 : cl3 { ~cl4(); }; cl4::~cl4 () { } >g++ -fcheck-pointer-bounds -mmpx -flto -flto-partition=max -shared -fPIC test.i lto1: internal compiler error: Segmentation fault 0xccfd22 crash_signal /export/users/ienkovic/issues/mpx/gcc/gcc/toplev.c:335 0x3b21c3567f ??? /home/glibctest/rpmbuild/BUILD/glibc-2.17-c758a686/signal/../sysdeps/unix/sysv/linux/x86_64/sigaction.c:0 0x7cfabd cgraph_node::get_untransformed_body() /export/users/ienkovic/issues/mpx/gcc/gcc/cgraph.c:3326 0x7da835 cgraph_node::expand_thunk(bool, bool) /export/users/ienkovic/issues/mpx/gcc/gcc/cgraphunit.c:1604 0x7dbf1f cgraph_node::assemble_thunks_and_aliases() /export/users/ienkovic/issues/mpx/gcc/gcc/cgraphunit.c:1906 0x7dbfc9 cgraph_node::assemble_thunks_and_aliases() /export/users/ienkovic/issues/mpx/gcc/gcc/cgraphunit.c:1924 0x7dc584 cgraph_node::expand() /export/users/ienkovic/issues/mpx/gcc/gcc/cgraphunit.c:2036 0x7dcc44 output_in_order /export/users/ienkovic/issues/mpx/gcc/gcc/cgraphunit.c:2211 0x7dd310 symbol_table::compile() /export/users/ienkovic/issues/mpx/gcc/gcc/cgraphunit.c:2459 0x7183f3 lto_main() /export/users/ienkovic/issues/mpx/gcc/gcc/lto/lto.c:3327 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: /export/users/ienkovic/issues/mpx/gcc-build/bin/g++ returned 1 exit status compilation terminated. /gnumnt/msticlxl7_users/ienkovic/binutils-gdb-build/bin/ld: error: lto-wrapper failed collect2: error: ld returned 1 exit status Regression starts from r232551