error message formatting

David Cogen cogen@ll.mit.edu
Wed Apr 15 07:39: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.
> 
> fxg_glyph_mgr.cc:345: no matching function for call to `map<int,list<FXG_Glyph *,__default_alloc_template<false,0> > *,less<int>,__default_alloc_template<false,0> >::insert (__rb_tree_iterator<pair<const int,list<FXG_Glyph *,__default_alloc_template<false,0> > *>,pair<const int,list<FXG_Glyph *,__default_alloc_template<false,0> > *> &,pair<const int,list<FXG_Glyph *,__default_alloc_template<false,0> > *> *> &, list<FXG_Glyph *,__default_alloc_template<false,0> > *&)'
> /usr/local/egcs/include/g++/stl_map.h:139: candidates are: map<int,list<FXG_Glyph *,__default_alloc_template<false,0> > *,less<int>,__default_alloc_template<false,0> >::insert(__rb_tree_iterator<pair<const int,list<FXG_Glyph *,__default_alloc_template<false,0> > *>,pair<const int,list<FXG_Glyph *,__default_alloc_template<false,0> > *> &,pair<const int,list<FXG_Glyph *,__default_alloc_template<false,0> > *> *>, const pair<const int,list<FXG_Glyph *,__default_alloc_template<false,0> > *> &)
> /usr/local/egcs/include/g++/stl_map.h:138:                 map<int,list<FXG_Glyph *,__default_alloc_template<false,0> > *,less<int>,__default_alloc_template<false,0> >::insert(const pair<const int,list<FXG_Glyph *,__default_alloc_template<false,0> > *> &)
> 


Yes, This is OUTRAGEOUS!

If there is a typedef which takes fewer characters to express then the
original, it should use the typedef form.

If there is more than one typedef, then, if it is too hard to decide which to
use, then I don't care which it uses; anything as long as it is
comprehensible!!!!


This applies to the linker, and debugger as well. I don't want to see a mess
like the above example!!!!


(You don't want me to go back to writing in C, do you? :)


-- DavidC



More information about the Gcc mailing list