No Subject
Horst von Brand
vonbrand@sleipnir.valparaiso.cl
Sun Nov 8 02:30:00 GMT 1998
Dragan Milenkovic <mg94c11@alas.matf.bg.ac.yu> 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 bug.cc
bug.cc: In function `int main(...)':
bug.cc:16: pointer-to-member function bug_causer.Some_Struct::f cannot be called
bug.cc:16: without an object; consider using .* or ->*
My (strictly limited!) knowledge of C++ tells me this is right. What do you
see?
--
Horst von Brand vonbrand@sleipnir.valparaiso.cl
Casilla 9G, Viña del Mar, Chile +56 32 672616
More information about the Gcc-bugs
mailing list