https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100373
--- Comment #10 from Iain Sandoe <iains at gcc dot gnu.org> --- * thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0) frame #0: 0x00000001016a4bb3 cc1`::gimple_code(g=0x0000000000000000) at gimple.h:1782 1779 static inline enum gimple_code 1780 gimple_code (const gimple *g) 1781 { -> 1782 return g->code; 1783 } 1784 1785 Target 0: (cc1) stopped. (lldb) bt * thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0) * frame #0: 0x00000001016a4bb3 cc1`::gimple_code(g=0x0000000000000000) at gimple.h:1782 frame #1: 0x00000001016a4f4f cc1`::is_gimple_debug(gs=0x0000000000000000) at gimple.h:4773 frame #2: 0x00000001016a7111 cc1`::lower_emutls_1(ptr=0x00000001030d4358, walk_subtrees=0x00007ffeefbff2d4, cb_data=0x00007ffeefbff370) at tree-emutls.c:483 frame #3: 0x0000000101a76f53 cc1`walk_tree_1(tp=0x00000001030d4358, func=(cc1`::lower_emutls_1(tree *, int *, void *) at tree-emutls.c:457), data=0x00007ffeefbff370, pset=0x0000000000000000, lh=0x0000000000000000)(tree_node**, int*, void*), void*, hash_set<tree_node*, false, default_hash_traits<tree_node*> >*, tree_node* (*)(tree_node**, int*, tree_node* (*)(tree_node**, int*, void*), void*, hash_set<tree_node*, false, default_hash_traits<tree_node*> >*)) at tree.c:10959 frame #4: 0x00000001016a75e3 cc1`::lower_emutls_phi_arg(phi=0x00000001030d4300, i=0, d=0x00007ffeefbff420) at tree-emutls.c:601 frame #5: 0x00000001016a77e3 cc1`::lower_emutls_function_body(node=0x0000000103045770) at tree-emutls.c:668 frame #6: 0x00000001016a7ef4 cc1`::ipa_lower_emutls() at tree-emutls.c:806 frame #7: 0x00000001016a7fe7 cc1`pass_ipa_lower_emutls::execute(this=0x000000014530fa00, (null)=0x0000000000000000) const at tree-emutls.c:846 frame #8: 0x00000001014192cd cc1`execute_one_pass(pass=0x000000014530fa00) at passes.c:2567 frame #9: 0x000000010141a39b cc1`execute_ipa_pass_list(pass=0x000000014530fa00) at passes.c:2996 frame #10: 0x0000000100cbb711 cc1`::ipa_passes() at cgraphunit.c:2154