This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

surpress default parameters in error messages ?


I use the STL a lot, and it works fine, besides the error messages.

My proposal:

To make error messages more readable it would be useful to supress the
output of default template parameters (perhaps with a -W... flag).

This would make out of

CFGAlgorithms.cc:332: warning: passing `const
vector<Symbol,__default_alloc_template<false,0> >' as `this' argument of
`class Symbol * vector<Symbol,__default_alloc_template<false,0>
>::erase(class Symbol *, class Symbol *)' discards const

the following:

CFGAlgorithms.cc:332: warning: passing `const vector<Symbol>' as `this'
argument of `class Symbol * vector<Symbol>::erase(class Symbol *, class
Symbol *)' discards const

Much easier to read, isn't it ???

-- 
|/
|\ai

--------------------------------------------------------------------------------
Kai Schuetz
mailto:kais@i6.informatik.rwth-aachen.de
Hi, I'm not a signature virus. Why don't you just copy me into your
signature?
--------------------------------------------------------------------------------


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]