http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59085

Kai Tietz <ktietz at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ktietz at gcc dot gnu.org

--- Comment #3 from Kai Tietz <ktietz at gcc dot gnu.org> ---
Issue is that the DECL_ASSEMBLER_NAME is tried to be taken by a VAR_DECL and it
is NULL_TREE.

I used the reduced testcase.

debug_tree shows: '<var_decl 0xffd38e20 log_stream ...', which is a static
thread_local class variable.

Checking in insert_to_assembler_name_hash() (symtab.c) that local variable name
isn't NULL_TREE before trying to call htab_find_slot_with_hash() seems to fix
issue.  But it seems that this just paperbacks the issue.

Reply via email to