This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: new parser: error recovery needs work
Phil Edwards wrote:-
> > (I think i heard something about carat errors being on
> > the way,
>
> They are.
I have them working fine in my C parser. Because you're pointing
to the location of the code, you can simplify or shorten many
existing diagnostics, or improve them altogether.
> > or something at least. A tool which could look up
> > the documentation just by passing it the text of an error message ... would
> > be nice too.
>
> You really don't want to rely on the text of an error message not changing
> over time. For this kind of thing to work, we need error messages to have
> numbers (like every other compiler does, and with reason).
Let's not even attempt to set messages in stone (even with numbers)
in the C front ends until all the work in the pipeline is done, and we
have a conforming C99 and C++ front end.
Neil.