This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: error message formatting
- To: mschaefer at dsai dot com
- Subject: Re: error message formatting
- From: Joe Buck <jbuck at synopsys dot com>
- Date: Wed, 15 Apr 98 20:35:07 PDT
- Cc: cogen at ll dot mit dot edu, egcs at cygnus dot com
[ long error messages ]
> Unfortunately, this is mainly due to the structure of the STL. Because
> it is so template based, you're going to get those long lines.
Well, it's possible to shorten the lines in several ways, or to break them
("pretty-print"), or to try to use typedefs, etc.
> Basically, if you want simplicity, STL is probably not the way to go.
I disagree: use of the STL can have a big payoff in terms of simplicity
(unless you get carried away and try to do complex functional programming
with function objects and adaptors -- such programs are hard to read and
maintain, it seems to me).
It is up to the egcs team as compiler implementers to figure out ways of
making decent error messages for STL code.
STL also puts stress on the name mangler; one approach is to claim that
it is an inevitable consequence of the STL, but there are more productive
approaches, such as the new -fsquangle in the snapshots.