[LTO merge] gimplification of types and symbols [2/2]

Jason Merrill jason@redhat.com
Wed Sep 2 17:49:00 GMT 2009


On 09/02/2009 01:26 PM, Diego Novillo wrote:
> @@ -282,6 +282,8 @@ decl_is_template_id (const tree decl, tr
>         /* Check if this is a primary template.  */
>         if (DECL_LANG_SPECIFIC (decl) != NULL
>   	&&  DECL_USE_TEMPLATE (decl)
> +	&&  TREE_CODE (DECL_TI_TEMPLATE (decl)) != OVERLOAD
> +	&&  TREE_CODE (DECL_TI_TEMPLATE (decl)) != IDENTIFIER_NODE
>   	&&  PRIMARY_TEMPLATE_P (DECL_TI_TEMPLATE (decl))
>   	&&  TREE_CODE (decl) != TEMPLATE_DECL)
>   	{

This hunk should be able to go away, too.  If not, as Mark says, we have 
a bug.

Jason



More information about the Gcc-patches mailing list