This is the mail archive of the
mailing list for the GCC project.
Re: [patch] fix PR c++/14136: Duplicate error message
- From: Volker Reichelt <reichelt at igpm dot rwth-aachen dot de>
- To: jason at redhat dot com
- Cc: rasky at develer dot com, gcc-patches at gcc dot gnu dot org, nathan at codesourcery dot com
- Date: Wed, 08 Dec 2004 18:32:04 +0100 (CET)
- Subject: Re: [patch] fix PR c++/14136: Duplicate error message
On 8 Dec, Jason Merrill wrote:
> On Fri, 03 Dec 2004 15:21:15 +0100 (CET), Volker Reichelt <firstname.lastname@example.org> wrote:
>> Alas, cp_parser_error can only deal with a simple string, and not with
>> "%qD" which is used to output the typedef-name.
> Why don't we fix that?
As Nathan pointed out here
using "cp_parser_error" wouldn't be a great idea for this particular
And the other cases where "error" is used in conjunction with
"cp_parser_simulate_error" are more complicated. They produce
additional output which has to be guarded with
"cp_parser_simulate_error" anyway. So there would be no real
benefit in changing "cp_parser_error" to accept not only simple