[C++ Patch] PR 34272, v2 + PR 42062
Jason Merrill
jason@redhat.com
Tue Feb 23 19:47:00 GMT 2010
On 12/03/2009 07:29 AM, Paolo Carlini wrote:
> - gcc_assert (TMPL_ARGS_DEPTH (args)
> - == TMPL_PARMS_DEPTH (DECL_TEMPLATE_PARMS (tmpl)));
> + if (TMPL_ARGS_DEPTH (args)
> + != TMPL_PARMS_DEPTH (DECL_TEMPLATE_PARMS (tmpl)))
> + return error_mark_node;
I'm uncomfortable about returning error_mark_node without giving an
error. Why can't we return error_mark_node at the point where we give
an error?
Jason
More information about the Gcc-patches
mailing list