PATCH: PR c++/39188: G++ doesn't handle static anonymous union right
Jason Merrill
jason@redhat.com
Thu Feb 19 08:15:00 GMT 2009
H.J. Lu wrote:
> DECL_NAME (anon_union_decl) = DECL_NAME (main_decl);
> mangle_decl (anon_union_decl);
> DECL_NAME (anon_union_decl) = NULL_TREE;
Ah, of course--I read the first line and then stopped.
But I don't think we can get that far into assemble_variable for a
variable with no assembler name; I think it's better to just remove the
DECL_NAME check rather than add a DECL_ASSEMBLER_NAME check which will
always be true.
Jason
More information about the Gcc-patches
mailing list