Oops, thought I had sent this before.

On 11/17/2012 10:23 AM, Dodji Seketeli wrote:
-         if (cp_parser_parse_definitely (parser))
+         /* Note that if we actually see the '=' token after the
+            identifier, cp_parser_alias_declaration commits the
+            tentative parse.  In that case, we really expects an
+            alias-declaration.  Otherwise, we expect a using
+            declaration.  */
+         alias_decl_expected =
+           !cp_parser_uncommitted_to_tentative_parse_p (parser);
+         cp_parser_parse_definitely (parser);

Maybe just check whether decl is error_mark_node?

+  if (type == error_mark_node)
+    return error_mark_node;

I think for error-recovery we might want to cp_parser_skip_to_end_of_block_or_statement as well.

Jason

Reply via email to