This is the mail archive of the gcc-bugs@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]

Weird error message


With egcs-1.1b I got the following weird error message:

events_tst.cc: In method `void FooEventServer::trigger(const class FooEventType &)':
events_tst.cc:227: no match for `__list_iterator<event_request_btct<FooEventType> *,event_request_btct<FooEventType> *&,event_request_btct<FooEventType> **> & < __list_iterator<event_request_btct<FooEventType> *,event_request_btct<FooEventType> *&,event_request_btct<FooEventType> **>'
../../../include/libr/dstream.h:495: candidates are: operator <(dstream::level_st, dstream::level_st)
make[1]: *** [events_tst.o] Error 1

where I can assure you that that file (dstream.h) and anything in it has *nothing* to do
with whatever happens on events_tst.cc:227 (or anywhere near that line):

  for (request_list_ct::iterator i = requests.begin(); i < requests.end(); ++i)


The error will be clear: I should use an operator != :), not `i < end()'.

Because there is NO candidate at all for operator< , some nonsense get printed
instead it seems.  Note that operator <(dstream::level_st, dstream::level_st)
is the last function in dstream.h.  It was not the last header file that
was scanned however.

I am sorry I can't provide an example case to reproduce this.

-- 
 Carlo Wood  <carlo@runaway.xs4all.nl>


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