error message formatting

Joe Buck jbuck@synopsys.com
Wed Apr 15 14:53:00 GMT 1998


> It would be nice if there was some readable formatting for error messages 
> instead of the following.  There are three very long lines here.

[ Huge errors deleted ]

One possibility would be to suppress template arguments when they match
the default.  We then have

> fxg_glyph_mgr.cc:345: no matching function for call to `map<int,list<FXG_Glyph *> *>::insert (__rb_tree_iterator<pair<const int,list<FXG_Glyph *> *>,pair<const int,list<FXG_Glyph *> *> &,pair<const int,list<FXG_Glyph *> *> *> &, list<FXG_Glyph *> *&)'
> /usr/local/egcs/include/g++/stl_map.h:139: candidates are: map<int,list<FXG_Glyph *> *>::insert(__rb_tree_iterator<pair<const int,list<FXG_Glyph *> *>,pair<const int,list<FXG_Glyph *> *> &,pair<const int,list<FXG_Glyph *> *> *>, const pair<const int,list<FXG_Glyph *> *> &)
> /usr/local/egcs/include/g++/stl_map.h:138:                 map<int,list<FXG_Glyph *> *>::insert(const pair<const int,list<FXG_Glyph *> *> &)> 

which is much more readable.  To do better we'd have to put typedefs into
symbols, which makes me nervous, though we could have a mechanism to do
it only for the standard classes.




More information about the Gcc mailing list