This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Static member functions failing on hp10.20 (egcs 1.1.1)
- Subject: Re: Static member functions failing on hp10.20 (egcs 1.1.1)
- From: Doug Semler <doug at seaspace dot com>
- Date: Thu, 11 Mar 1999 07:48:15 -0800
- cc: egcs-bugs at egcs dot cygnus dot com
Sorry about this....divine inspiration :)
Follow up to my last bug report: If I fully qualify the base class in
the reference to static_function, the bug goes away
> -=-=-=-=-=-=-=-
> foo.cc
>
> #include "interface.h"
>
> void derived::caller(void (*func)(void))
> {
> }
>
> void derived::i()
> {
> caller(static_function);
> }
foo.cc
#include "interface.h"
void derived::caller(void (*func)(void))
{
}
void derived::i()
{
caller(base::static_function);
}
^^^^^^^^ adding this makes it work