Bug in g++ 2.95.4 (Pointer to member functions)

Simon Barner barner at in.tum.de
Tue Apr 29 12:56:42 PDT 2003


Hi Paul,

thanks for your reply.

> I think your public methods for the class Class should be static.

According to http://www.parashift.com/c++-faq-lite/pointers-to-members.html,
there are both possibilities.

When I make the static and change the rest accordingling, the program compiles
and runs as exspected.

But if do this, I cannot change non-static members in objects of type Class
(which is what I want to do actually, this example is simplified).

Isn't the fact, that the compilation causes an error only for arrays with more
than two entries an evidance for a compiler bug?

Cheers,
 Simon
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: Digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20030429/7c937916/attachment.bin


More information about the freebsd-stable mailing list