https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69075
Bug ID: 69075 Summary: ICE when setting early-inlining-insns to other than default Product: gcc Version: 5.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: ipa Assignee: unassigned at gcc dot gnu.org Reporter: charles.frasch at gmail dot com Target Milestone: --- I tried a variety of values for --param early-inlining-insns=n and and ICE happened for all but the default 14. gcc info ------------ g++ -v Using built-in specs. COLLECT_GCC=g++ COLLECT_LTO_WRAPPER=/home/cfrasch/local/bin/../libexec/gcc/x86_64-linux-gnu/5.3.0/lto-wrapper Target: x86_64-linux-gnu Configured with: ../gcc-5.3.0/configure -v --enable-languages=c,c++ --disable-multilib --with-build-config=bootstrap-lto --program-suffix=-5.3 --enable-shared --without-included-gettext --enable-threads=posix --enable-nls --enable-nls --enable-gnu-unique-object --with-system-zlib --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu Thread model: posix gcc version 5.3.0 (GCC) compiler output ----- FAILED: /home/cfrasch/local/bin/g++ -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14 -Wall -Werror -Wno-unused-local-typedefs -Wno-unknown-pragmas -Wno-deprecated-declarations -Wno-unused-variable -flto -fuse-linker-plugin -O3 -g -DNDEBUG -fdevirtualize-at-ltrans --param early-inlining-insns=15 -save-temps -I/usr/local/boost/boost_1_57_0/include -I../../../../src -I/usr/local/gtest/gtest/include -MMD -MT src/theme/fix_engine/tests/CMakeFiles/fix_engine_ut_helper.dir/Gateway_With_Client_And_Failover_Gateway.cpp.o -MF "src/theme/fix_engine/tests/CMakeFiles/fix_engine_ut_helper.dir/Gateway_With_Client_And_Failover_Gateway.cpp.o.d" -o src/theme/fix_engine/tests/CMakeFiles/fix_engine_ut_helper.dir/Gateway_With_Client_And_Failover_Gateway.cpp.o -c ../../../../src/theme/fix_engine/tests/Gateway_With_Client_And_Failover_Gateway.cpp In file included from ../../../../src/theme/fix_engine/tests/../Book.hpp:3:0, from ../../../../src/theme/fix_engine/tests/../Gateway_Base.hpp:3, from ../../../../src/theme/fix_engine/tests/../Gateway.hpp:3, from ../../../../src/theme/fix_engine/tests/Gateway_With_Client_T.hpp:4, from ../../../../src/theme/fix_engine/tests/Gateway_With_Client_And_Failover_Gateway.hpp:3, from ../../../../src/theme/fix_engine/tests/Gateway_With_Client_And_Failover_Gateway.cpp:1: ../../../../src/theme/fix_engine/tests/../Book_Entry.hpp: In member function ‘theme::fix::Book_Entry::Book_Entry(theme::Order_Id const&, theme::Client_Order_Id const&, theme::Fix_Sequence_Number)’: ../../../../src/theme/fix_engine/tests/../Book_Entry.hpp:152:34: internal compiler error: Segmentation fault msgs::Performance_Data>()) ^ 0xbebee6 crash_signal ../../gcc-5.3.0/gcc/toplev.c:383 0x644aed vec<tree_node*, va_gc, vl_embed>::iterate(unsigned int, tree_node**) const ../../gcc-5.3.0/gcc/vec.h:777 0x644aed is_really_empty_class(tree_node*) ../../gcc-5.3.0/gcc/cp/class.c:8055 0x104c829 cp_gimplify_expr(tree_node**, gimple_statement_base**, gimple_statement_base**) ../../gcc-5.3.0/gcc/cp/cp-gimplify.c:645 0xc6f066 gimplify_expr(tree_node**, gimple_statement_base**, gimple_statement_base**, bool (*)(tree_node*), int) ../../gcc-5.3.0/gcc/gimplify.c:8009 0xc73b48 gimplify_stmt(tree_node**, gimple_statement_base**) ../../gcc-5.3.0/gcc/gimplify.c:5519 0xc7856f gimplify_and_add(tree_node*, gimple_statement_base**) ../../gcc-5.3.0/gcc/gimplify.c:423 0xc7856f internal_get_tmp_var ../../gcc-5.3.0/gcc/gimplify.c:568 0xc6f250 gimplify_expr(tree_node**, gimple_statement_base**, gimple_statement_base**, bool (*)(tree_node*), int) ../../gcc-5.3.0/gcc/gimplify.c:9024 0xc72d85 gimple_regimplify_operands(gimple_statement_base*, gimple_stmt_iterator*) ../../gcc-5.3.0/gcc/gimplify-me.c:261 0xc01cc2 copy_bb ../../gcc-5.3.0/gcc/tree-inline.c:1827 0xc01cc2 copy_cfg_body ../../gcc-5.3.0/gcc/tree-inline.c:2745 0xc01cc2 copy_body ../../gcc-5.3.0/gcc/tree-inline.c:2985 0xc06f42 expand_call_inline ../../gcc-5.3.0/gcc/tree-inline.c:4708 0xc06f42 gimple_expand_calls_inline ../../gcc-5.3.0/gcc/tree-inline.c:4848 0xc06f42 optimize_inline_calls(tree_node*) ../../gcc-5.3.0/gcc/tree-inline.c:4988 0x905309 early_inliner(function*) ../../gcc-5.3.0/gcc/ipa-inline.c:2730 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.