Fix PR debug/45088

Jason Merrill jason@redhat.com
Mon Dec 13 14:27:00 GMT 2010


On 12/12/2010 10:04 AM, Dodji Seketeli wrote:
>     /* If TYPE is a typedef type variant, let's generate debug info
>        for the parent typedef which TYPE is a type of.  */
> -  if (typedef_variant_p (type))
> +  if (typedef_variant_p (type)
> +      &&  !is_redundant_typedef (TYPE_NAME (type)))

I would expect this to cause problems when things use both the main type 
and the injected variant, since the two types have different 
TREE_ASM_WRITTEN.  Rather, if type is a redundant typedef, we should 
strip it to get the underlying type.

Jason



More information about the Gcc-patches mailing list