This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++ PATCH] Fix error recovery in cp_parser_condition (PR c++/38635)
- From: Mark Mitchell <mark at codesourcery dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: Jason Merrill <jason at redhat dot com>, gcc-patches at gcc dot gnu dot org
- Date: Mon, 29 Dec 2008 09:42:36 -0800
- Subject: Re: [C++ PATCH] Fix error recovery in cp_parser_condition (PR c++/38635)
- References: <20081228200253.GE17496@tyan-ft48-01.lab.bos.redhat.com>
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