[Bug c++/61558] [4.10 Regression] ICE: Segmentation fault

trippels at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Jun 19 08:03:00 GMT 2014


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

Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2014-06-19
                 CC|                            |trippels at gcc dot gnu.org
            Version|4.9.0                       |4.10.0
   Target Milestone|---                         |4.10.0
            Summary|ice in                      |[4.10 Regression] ICE:
                   |insert_to_assembler_name_ha |Segmentation fault
                   |sh                          |
     Ever confirmed|0                           |1

--- Comment #1 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
markus@x4 tmp % cat bug2.ii
static __typeof 0 a __attribute__ ((__weakref__ ("")));
template <typename> class A
{
  static __thread int b;
};


Program received signal SIGSEGV, Segmentation fault.
[Switching to process 20878]
decl_assembler_name_hash (asmname=0x0) at ../../gcc/gcc/symtab.c:80
80        if (IDENTIFIER_POINTER (asmname)[0] == '*')
(gdb) bt
#0  decl_assembler_name_hash (asmname=0x0) at ../../gcc/gcc/symtab.c:80
#1  0x000000000083ca10 in insert_to_assembler_name_hash (node=0x7ffff73da078,
with_clones=<optimized out>) at ../../gcc/gcc/symtab.c:191
#2  0x000000000083cb62 in symtab_initialize_asm_name_hash () at
../../gcc/gcc/symtab.c:366
#3  0x000000000083ccbd in symtab_initialize_asm_name_hash () at
../../gcc/gcc/symtab.c:390
#4  symtab_node_for_asm (asmname=0x7ffff73d4420) at ../../gcc/gcc/symtab.c:379
#5  0x0000000000848e91 in handle_alias_pairs () at
../../gcc/gcc/cgraphunit.c:1152
#6  0x000000000084d8bd in finalize_compilation_unit () at
../../gcc/gcc/cgraphunit.c:2320
#7  0x000000000063b2af in cp_write_global_declarations () at
../../gcc/gcc/cp/decl2.c:4647
#8  0x0000000000b85c2d in compile_file () at ../../gcc/gcc/toplev.c:562
#9  0x0000000000b87c75 in do_compile () at ../../gcc/gcc/toplev.c:1918
#10 toplev_main (argc=12, argv=0x7fffffffdee8) at ../../gcc/gcc/toplev.c:1994
#11 0x00007ffff75fbfb0 in __libc_start_main () from /lib/libc.so.6
#12 0x000000000054b841 in _start ()
(gdb) p asmname 
$1 = (const_tree) 0x0



More information about the Gcc-bugs mailing list