https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79931
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Related to PR 66301 but not exactly the same. here is the full testcase: cc1plus: internal compiler error: in dump_possible_polymorphic_call_targets, at ipa-devirt.c:3361 0xb6b53b dump_possible_polymorphic_call_targets(_IO_FILE*, tree_node*, long, ipa_polymorphic_call_context const&) ../../gcc/gcc/ipa-devirt.c:3361 0x96e693 dump_possible_polymorphic_call_targets(_IO_FILE*, cgraph_edge*) ../../gcc/gcc/ipa-utils.h:144 0x96e693 walk_polymorphic_call_targets ../../gcc/gcc/cgraphunit.c:849 0x96e693 analyze_functions ../../gcc/gcc/cgraphunit.c:1115 0x96f3f7 symbol_table::finalize_compilation_unit() ../../gcc/gcc/cgraphunit.c:2562 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.