This is the mail archive of the
mailing list for the GCC project.
Re: [patch] fix PR c++/14136: Duplicate error message
- From: Nathan Sidwell <nathan at codesourcery dot com>
- To: Volker Reichelt <reichelt at igpm dot rwth-aachen dot de>
- Cc: rasky at develer dot com, gcc-patches at gcc dot gnu dot org
- Date: Fri, 03 Dec 2004 16:30:57 +0000
- Subject: Re: [patch] fix PR c++/14136: Duplicate error message
- Organization: Codesourcery LLC
- References: <200412031421.iB3ELBiJ019741@relay.rwth-aachen.de>
Volker Reichelt wrote:
In fact, cp_parser_simulate_error in fact calls
!cp_parser_committed_to_tentative_parse, but does some additional
stuff (like marking the attempt as failed), too.
So here's an updated version which uses cp_parser_simulate_error
instead of just cp_parser_committed_to_tentative_parse.
no this change is not right. the construct is syntatically valid (it
should parse), but it is semantically invalid - hence the error.
Your first patch was better, as it did not change the parse. However,
why do we parse this bit twice anyway?
Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC
email@example.com :: http://www.planetfall.pwp.blueyonder.co.uk