[C++ PATCH] Fix error recovery in cp_parser_condition (PR c++/38635)

Mark Mitchell mark@codesourcery.com
Mon Dec 29 18:11:00 GMT 2008


Jakub Jelinek wrote:

> 2008-12-28  Jakub Jelinek  <jakub@redhat.com>
> 
> 	PR c++/38635
> 	* parser.c (cp_parser_condition): Use cp_parser_require
> 	instead of cp_lexer_consume_token to consume =.
> 
> 	* g++.dg/parse/cond4.C: New test.

OK.  This isn't going to give a great error message for the case you
posted, but if someone wants to work on that, you've not made things any
harder.

Thanks,

-- 
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713



More information about the Gcc-patches mailing list