https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61548

--- Comment #2 from jgreenhalgh at gcc dot gnu.org ---
Actually, that test case gets you a different ICE:

reduced.c:1:17: internal compiler error: Segmentation fault
 __thread struct __res_state foo;
                 ^
0x9805ee crash_signal
    /work/gcc-clean/src/gcc/gcc/toplev.c:337
0x750483 contains_struct_check
    /work/gcc-clean/src/gcc/gcc/tree.h:2840
0x750483 fold_convert_loc(unsigned int, tree_node*, tree_node*)
    /work/gcc-clean/src/gcc/gcc/fold-const.c:1913
0x9dccd2 default_emutls_var_init(tree_node*, tree_node*, tree_node*)
    /work/gcc-clean/src/gcc/gcc/tree-emutls.c:170
0x9db1e0 new_emutls_decl
    /work/gcc-clean/src/gcc/gcc/tree-emutls.c:336
0x9db1e0 create_emultls_var
    /work/gcc-clean/src/gcc/gcc/tree-emutls.c:713
0xc427e8 varpool_for_node_and_aliases(varpool_node*, bool (*)(varpool_node*,
void*), void*, bool)
    /work/gcc-clean/src/gcc/gcc/varpool.c:697
0x9dc1cf ipa_lower_emutls
    /work/gcc-clean/src/gcc/gcc/tree-emutls.c:784
0x9dc1cf execute
    /work/gcc-clean/src/gcc/tree-emutls.c:845
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.

Reply via email to