No Subject

Horst von Brand
Sun Nov 8 02:30:00 GMT 1998

Dragan Milenkovic <> said:
> By a miss-use of pointer-to-member-function I have discovered
> a bug in Your program. There is a sample program in this message
> that causes the bug.
> Program:   gcc or g++
> Version:   egcs-2.90.29 980511 (egcs-1.0.3 release)
> System:    Linux i586 2.0.35
>            or at least this is what it writes when I login
> I must say that I am not familiar wether or not this is
> the latest version of Your program.

At least egcs-1.1b (the latest stable version) here gives:

vonbrand@sleipnir:/tmp$ g++ -c In function `int main(...)': pointer-to-member function bug_causer.Some_Struct::f cannot be called without an object; consider using .* or ->*

My (strictly limited!) knowledge of C++ tells me this is right. What do you
Horst von Brand                   
Casilla 9G, Viña del Mar, Chile                               +56 32 672616

More information about the Gcc-bugs mailing list