https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53932
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jason at gcc dot gnu.org
Keywords| |wrong-code
--- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> ---
The C++ frontend mangles union { int i; };
.local _ZL1i
.comm _ZL1i,4,4
but not the reference to the anonymous union member:
.globl r
.data
.align 8
.type r, @object
.size r, 8
r:
.quad i
they are even different decls:
i/3 (int i)
Type: variable
Body removed by symtab_remove_unreachable_nodes
Visibility: semantic_interposition artificial
References:
Referring: r/1 (addr)
Availability: not_available
Varpool flags:
r/1 (int& r)
Type: variable definition analyzed
Visibility: force_output externally_visible semantic_interposition no_reorder
asm_written public
Aux: @0x1
References: i/3 (addr)
Referring:
Availability: available
Varpool flags: initialized read-only const-value-known
_ZL1i/0 (_ZL1i)
Type: variable definition analyzed
Visibility: force_output semantic_interposition no_reorder
prevailing_def_ironly asm_written
Aux: @0x7ffff7ff3100
References:
Referring:
Availability: available
Varpool flags: