[C++ Patch] PR 56534

Jason Merrill jason@redhat.com
Wed Mar 6 17:32:00 GMT 2013


On 03/06/2013 11:42 AM, Paolo Carlini wrote:
> +	/* NULL_TREE or error_mark_node (if decl is error_mark_node).  */
> +	type = TREE_TYPE (decl);

I'd prefer to avoid taking the TREE_TYPE of some random thing.  If what 
we want is NULL_TREE or error_mark_node, let's write that rather than 
expect to get it from TREE_TYPE.

Jason



More information about the Gcc-patches mailing list