This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [C++ Patch] PR 34272, v2 + PR 42062


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]