https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58624
Markus Trippelsdorf <trippels at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |trippels at gcc dot gnu.org --- Comment #7 from Markus Trippelsdorf <trippels at gcc dot gnu.org> --- For 5: markus@x4 tmp % cat boo.ii static __typeof 0 a __attribute__ ((__weakref__ (""))); template <typename> class A { static __thread int b; }; markus@x4 tmp % g++ -std=c++11 boo.ii boo.ii:5:2: internal compiler error: Segmentation fault }; ^ 0xbbfe5f crash_signal ../../gcc/gcc/toplev.c:339 0x856964 tree_check ../../gcc/gcc/tree.h:2962 0x856964 symbol_table::decl_assembler_name_hash(tree_node const*) ../../gcc/gcc/symtab.c:69 0x856c13 symbol_table::insert_to_assembler_name_hash(symtab_node*, bool) ../../gcc/gcc/symtab.c:181 0x856d5c symbol_table::symtab_initialize_asm_name_hash() ../../gcc/gcc/symtab.c:263 0x858414 symbol_table::symtab_initialize_asm_name_hash() ../../gcc/gcc/symtab.c:958 0x858414 symtab_node::get_for_asmname(tree_node const*) ../../gcc/gcc/symtab.c:947 0x864d80 handle_alias_pairs ../../gcc/gcc/cgraphunit.c:1111 0x869d8c symbol_table::finalize_compilation_unit() ../../gcc/gcc/cgraphunit.c:2264 0x656d6a cp_write_global_declarations() ../../gcc/gcc/cp/decl2.c:4666 Please submit a full bug report, with preprocessed source if appropriate. for 4.8, 4.9 and 5: markus@x4 tmp % cat test.ii namespace std { typedef int string; template <typename> class unique_ptr; } template <typename> class A { static thread_local std::unique_ptr<std::string> s; public: A () { s; } }; int main () { A<void> a; } markus@x4 tmp % g++ -std=c++11 test.ii cc1plus: internal compiler error: Segmentation fault 0xbbfe5f crash_signal ../../gcc/gcc/toplev.c:339 0x856964 tree_check ../../gcc/gcc/tree.h:2962 0x856964 symbol_table::decl_assembler_name_hash(tree_node const*) ../../gcc/gcc/symtab.c:69 0x856c13 symbol_table::insert_to_assembler_name_hash(symtab_node*, bool) ../../gcc/gcc/symtab.c:181 0x856d5c symbol_table::symtab_initialize_asm_name_hash() ../../gcc/gcc/symtab.c:263 0x8699d2 analyze_functions ../../gcc/gcc/cgraphunit.c:1094 0x869da5 symbol_table::finalize_compilation_unit() ../../gcc/gcc/cgraphunit.c:2277 0x656d6a cp_write_global_declarations() ../../gcc/gcc/cp/decl2.c:4666 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.