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]

Re: Bug report


> 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

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