This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Weird error message
- To: egcs-bugs at cygnus dot com
- Subject: Weird error message
- From: Carlo Wood <carlo at runaway dot xs4all dot nl>
- Date: Thu, 5 Nov 1998 02:59:25 +0100 (CET)
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>