[RFC] PR c++/43206

Jason Merrill jason@redhat.com
Thu Mar 25 16:42:00 GMT 2010


On 03/24/2010 06:34 PM, Dodji Seketeli wrote:
>     else if (typedef_variant_p (t)
> -&&  DECL_CONTEXT (TYPE_NAME (t))
> -&&  !NAMESPACE_SCOPE_P (TYPE_NAME (t)))
> +	&&  DECL_CONTEXT (TYPE_NAME (t))
> +	&&  !NAMESPACE_SCOPE_P (TYPE_NAME (t)))

You don't need to check DECL_CONTEXT separately here; 
DECL_NAMESPACE_SCOPE_P is true for a decl with null DECL_CONTEXT.  OK 
with that change.

Jason



More information about the Gcc-patches mailing list