https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65583
Bug ID: 65583 Summary: [5 Regression][UBSAN] ICE segfault in inline_edge_summary Product: gcc Version: 5.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: sanitizer Assignee: unassigned at gcc dot gnu.org Reporter: burnus at gcc dot gnu.org CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org, jakub at gcc dot gnu.org, kcc at gcc dot gnu.org Created attachment 35146 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35146&action=edit input.ii - compile with g++ -std=c++11 -O2 -fsanitize=undefined This must be caused by a fairly recent commit as I tend to compile both GCC and the code daily - albeit not always with the same options / compiler. Still, I think it must be a commit in the last 36h. $ g++ -std=c++11 -O2 -fsanitize=undefined input31.ii input31.ii: In member function ‘void std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_M_dispose() [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’: input31.ii:136:1: internal compiler error: Segmentation fault } ^ 0xce0aef crash_signal ../../gcc/toplev.c:383 0xb3bc11 inline_edge_summary ../../gcc/ipa-inline.h:275 0xb3bc11 estimate_function_body_sizes ../../gcc/ipa-inline-analysis.c:2657 0xb3e653 compute_inline_parameters(cgraph_node*, bool) ../../gcc/ipa-inline-analysis.c:2951 0xdb9cd8 convert_callers_for_node ../../gcc/tree-sra.c:4936 0xdbf29d cgraph_node::call_for_symbol_and_aliases(bool (*)(cgraph_node*, void*), void*, bool) ../../gcc/cgraph.h:3024