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: Static member functions failing on hp10.20 (egcs 1.1.1)


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



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