This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Degraded C++ error messages.
On Fri, Nov 07, 2003 at 05:16:47PM +0100, Gabriel Dos Reis wrote:
> | ~>g++-cvs-3.4 troep.cc
> | troep.cc: In function `int main()':
> | troep.cc:6: error: expected type-name
> | troep.cc:6: error: expected `::'
> | troep.cc:6: error: expected `~'
> | troep.cc:6: error: expected identifier
This particular case seems to be duplicate of
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9851
So I won't report it again.
That PR is assigned to you.
How is the status of it?
> I much prefer the error message that displays expressions (althougth it
> could be improved), but some people seems to like the "typed" ones --
> it should be recalled that C++ expressions can not be consistently and
> accurately captured by types only. I find it quite unreadable.
I am sad to hear that you like expressions more - because those are
definitely less readable. I'll give more examples of the unreadable
cases that I run into when I run into them, in this thread - and leave
the 'excepted' type of error message for what they are as being reported
and known already anyway.
--
Carlo Wood <carlo@alinoe.com>