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]
Other format: [Raw text]

Re: Degraded C++ error messages.


Carlo Wood <carlo@alinoe.com> writes:

| On Fri, Nov 07, 2003 at 07:11:34PM +0100, Gabriel Dos Reis wrote:
| > Are you saying that
| > 
| > troep.cc:6: error: request for member `base' in `*(&std::vector<_Tp,
| >    _Alloc>::begin() [with _Tp = int, _Alloc =
| >    std::allocator<int>]())->__gnu_cxx::__normal_iterator<_Iterator,
| >    _Container>::operator->() const [with _Iterator = int*, _Container =
| >    std::vector<int, std::allocator<int> >]()', which is of non-aggregate type `
| >    int'
| > 
| > is more readale than
| > 
| > troep.cc:6: request for member `base' in `*v.vector<int,allocator<int> >::begin()', which is of non-aggregate type `int'
| > 
| > ?
| 
| No, sorry if I misunderstood you.  I think that the error messages
| of 2.95.3 were near perfect.  The latter (as given in the above quote)
| is definitely better readable.

That is what I call expression-based messages.  Sorry if I didn't word it
clearly. 

-- Gaby


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