https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82067
--- Comment #7 from jupitercuso4 at gmail dot com --- $ g++ -std=c++11 -O3 --verbose test.i Using built-in specs. COLLECT_GCC=g++ COLLECT_LTO_WRAPPER=/project/usr-tensilica-RHEL5/stools-8.0-2017-06-05/bin/../libexec/gcc/x86_64-pc-linux-gnu/4.9.4/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: ../gcc-4.9.4/configure --with-checking=release --build=x86_64-pc-linux-gnu --prefix=/usr/xtensa/stools-8.0-2017-06-05 LD_OPTIONS=-R/usr/xtensa/stools-8.0-2017-06-05/lib --with-gmp=/usr/xtensa/stools-8.0-2017-06-05 --with-mpfr=/usr/xtensa/stools-8.0-2017-06-05 --enable-languages=c,c++ --disable-libgcj Thread model: posix gcc version 4.9.4 (GCC) COLLECT_GCC_OPTIONS='-std=c++11' '-O3' '-v' '-shared-libgcc' '-mtune=generic' '-march=x86-64' /project/usr-tensilica-RHEL5/stools-8.0-2017-06-05/bin/../libexec/gcc/x86_64-pc-linux-gnu/4.9.4/cc1plus -fpreprocessed test.i -quiet -dumpbase test.i -mtune=generic -march=x86-64 -auxbase test -O3 -std=c++11 -version -o /tmp/cc6LMkmh.s GNU C++ (GCC) version 4.9.4 (x86_64-pc-linux-gnu) compiled by GNU C version 4.9.4, GMP version 6.1.2, MPFR version 3.1.5, MPC version 1.0.3 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 GNU C++ (GCC) version 4.9.4 (x86_64-pc-linux-gnu) compiled by GNU C version 4.9.4, GMP version 6.1.2, MPFR version 3.1.5, MPC version 1.0.3 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 Compiler executable checksum: e4a50cb5767031363285860fcbf01e45 test.cpp: In constructor 'xtsc_component::xtsc_queue_pin::xtsc_queue_pin(sc_core::sc_module_name, const xtsc_component::xtsc_queue_pin_parms&)': test.cpp:32:1: internal compiler error: in possible_polymorphic_call_targets, at ipa-devirt.c:1557 xtsc_component::xtsc_queue_pin::xtsc_queue_pin(sc_module_name module_name, const xtsc_queue_pin_parms& queue_parms) : ^ 0x6828cb possible_polymorphic_call_targets(tree_node*, long, ipa_polymorphic_call_context, bool*, void**, int*) ../../gcc-4.9.4/gcc/ipa-devirt.c:1557 0x665cea possible_polymorphic_call_targets(tree_node*, bool*, void**) ../../gcc-4.9.4/gcc/ipa-utils.h:142 0xc87198 gimple_fold_call ../../gcc-4.9.4/gcc/gimple-fold.c:1127 0xc87198 fold_stmt_1 ../../gcc-4.9.4/gcc/gimple-fold.c:1302 0xd909b8 fold_marked_statements ../../gcc-4.9.4/gcc/tree-inline.c:4549 0xd8c2e0 optimize_inline_calls(tree_node*) ../../gcc-4.9.4/gcc/tree-inline.c:4630 0xf48b89 inline_transform(cgraph_node*) ../../gcc-4.9.4/gcc/ipa-inline-transform.c:457 0xd1b58a execute_one_ipa_transform_pass ../../gcc-4.9.4/gcc/passes.c:2066 0xd1b58a execute_all_ipa_transforms() ../../gcc-4.9.4/gcc/passes.c:2107 0xbd8abd expand_function ../../gcc-4.9.4/gcc/cgraphunit.c:1775 0xf99653 expand_all_functions ../../gcc-4.9.4/gcc/cgraphunit.c:1916 0xf99653 compile() ../../gcc-4.9.4/gcc/cgraphunit.c:2260 0xf98f17 finalize_compilation_unit() ../../gcc-4.9.4/gcc/cgraphunit.c:2337 0xb149dd cp_write_global_declarations() ../../gcc-4.9.4/gcc/cp/decl2.c:4647 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.