This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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 <reichelt@igpm.rwth-aachen.de> 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?
> 
> Jason

As Nathan pointed out here
http://gcc.gnu.org/ml/gcc-patches/2004-12/msg00273.html
using "cp_parser_error" wouldn't be a great idea for this particular
problem.

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
strings.

Regards,
Volker



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]