From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16909 invoked by alias); 26 Aug 2014 12:39:54 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 16850 invoked by uid 48); 26 Aug 2014 12:39:50 -0000 From: "trippels at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/58624] gcc internal compiler error: Segmentaion fault in insert_to_assembler_name_hash Date: Tue, 26 Aug 2014 12:39:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 4.8.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: trippels at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-08/txt/msg01766.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58624 Markus Trippelsdorf changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |trippels at gcc dot gnu.org --- Comment #7 from Markus Trippelsdorf --- For 5: markus@x4 tmp % cat boo.ii static __typeof 0 a __attribute__ ((__weakref__ (""))); template 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 class unique_ptr; } template class A { static thread_local std::unique_ptr s; public: A () { s; } }; int main () { A 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 for instructions.