This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Bug report
- To: r dot gasch at chello dot nl
- Subject: Re: Bug report
- From: "Martin v. Loewis" <martin at loewis dot home dot cs dot tu-berlin dot de>
- Date: Mon, 24 Jan 2000 23:56:26 +0100
- CC: gcc-bugs at gcc dot gnu dot org
- References: <00012423074302.00593@wintermute.darkstar.org>
> I'm using gcc-2.95.2 on Intel Linux (Mandrake 6.1) and seem to have
> run into a bug which is reproducable by compiling the attached file
> with "g++ -c t.cc" .
Thanks for your bug report. I fail to see the bug, please explain in
detail why you think the compiler is misbehaving.
When I compile your code with gcc 2.95.2, I get the error message
/usr/local/include/sigc++/object_slot.h: In function `static struct SigC::SlotData * SigC::ObjectSlot1_<void,basic_string<char,string_char_traits<char>,__default_alloc_template<true,0> >,TFWindowMain>::create(TFWindowMain *, void (TFWindowMain::*)(basic_string<char,string_char_traits<char>,__default_alloc_template<true,0> >))':
/usr/local/include/sigc++/object_slot.h:218: instantiated from `SigC::slot<void, basic_string<char,string_char_traits<char>,__default_alloc_template<true,0> >, TFWindowMain, TFWindowMain>(TFWindowMain *const &, void (TFWindowMain::*)(basic_string<char,string_char_traits<char>,__default_alloc_template<true,0> >))'
TFWindowMain.cc:161: instantiated from here
/usr/local/include/sigc++/object_slot.h:164: no matching function for call to `TFWindowMain::register_data (SigC::ScopeNode *)'
As far as I can tell, the compiler is right: This is an error.
In line 164 of object_slot.h, I see
obj->register_data(tmp->receiver());
where obj is of the Obj, which is a template parameter, which gets
replaced with TFWindowMain. AFAICT, TFWindowMain does not have a
method register_data; neither does its only base class (TFWindowBase),
which also has no further base classes.
I don't understand the comment you got from the mailing list: Are you
sure you were asked to file a *gcc* bug report?
Regards,
Martin