https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82737
--- Comment #11 from Martin Liška <marxin at gcc dot gnu.org> --- Created attachment 42503 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42503&action=edit Slightly reduced test-case With following test-case, I see ICE with following cross-compiler: ../configure --enable-languages=c,c++ --disable-multilib --disable-libsanitizer --prefix=/home/marxin/bin/gcc --disable-bootstrap --target=x86_64-w64-mingw32 --enable-checking=no $ ./xg++ -B. ice.ii -std=c++1z -mavx512dq -c -O2 -g --param ggc-min-heapsize=0 In file included from C:/msys64/mingw64/include/c++/7.2.0/locale:42:0, from C:/msys64/mingw64/include/c++/7.2.0/iomanip:37, from C:/repos/gassim/src/Control/Manager.cpp:7: C:/msys64/mingw64/include/c++/7.2.0/bits/locale_conv.h:140:5: internal compiler error: Segmentation fault 0xaffb9f crash_signal ../../gcc/toplev.c:326 0x77aeb6 lookup_page_table_entry ../../gcc/ggc-page.c:646 0x77aeb6 ggc_set_mark(void const*) ../../gcc/ggc-page.c:1536 0x6fc0f1 gt_ggc_mx_lang_tree_node(void*) ./gt-cp-tree.h:136 0x6fdc07 gt_ggc_mx_lang_tree_node(void*) ./gt-cp-tree.h:526 0x6351b1 ggc_remove<tree_node*>::ggc_mx(tree_node*&) ../../gcc/hash-traits.h:235 0x6351b1 gt_ggc_mx<mangled_decl_hash> ../../gcc/hash-table.h:1047 0x6351b1 gt_ggc_mx_hash_table_mangled_decl_hash_(void*) ./gt-cp-decl2.h:28 0x8e0ba5 ggc_mark_root_tab ../../gcc/ggc-common.c:77 0x8e0e80 ggc_mark_roots() ../../gcc/ggc-common.c:94 0x77b7c5 ggc_collect() ../../gcc/ggc-page.c:2206 0x6e9304 expand_or_defer_fn_1(tree_node*) ../../gcc/cp/semantics.c:4177 0x6e9378 expand_or_defer_fn(tree_node*) ../../gcc/cp/semantics.c:4236 0x6a2a14 cp_parser_function_definition_after_declarator ../../gcc/cp/parser.c:26756 0x6a3635 cp_parser_function_definition_from_specifiers_and_declarator ../../gcc/cp/parser.c:26667 0x6a3635 cp_parser_init_declarator ../../gcc/cp/parser.c:19526 0x6a83ea cp_parser_single_declaration ../../gcc/cp/parser.c:27207 0x6a85ac cp_parser_template_declaration_after_parameters ../../gcc/cp/parser.c:26809 0x6a8b95 cp_parser_explicit_template_declaration ../../gcc/cp/parser.c:27046 0x6a8b95 cp_parser_template_declaration_after_export ../../gcc/cp/parser.c:27065