Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Apr 2003 21:56:37 +0200
From:      Simon Barner <barner@in.tum.de>
To:        Paul Marquis <pmarquis@pobox.com>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: Bug in g++ 2.95.4 (Pointer to member functions)
Message-ID:  <20030429195637.GA6395@zi025.glhnet.mhn.de>
In-Reply-To: <200304291501.02430.pmarquis@pobox.com>
References:  <20030429143841.GA5828@zi025.glhnet.mhn.de> <200304291501.02430.pmarquis@pobox.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--3MwIy2ne0vdjdPXF
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

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

--3MwIy2ne0vdjdPXF
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (FreeBSD)

iD8DBQE+rtj1Ckn+/eutqCoRAnmmAKCCTBVkVdnJekXmdnwYlEwAvvYyfQCff2VM
4wJHGcUncwgL3CBhSjpU7Gk=
=W4bp
-----END PGP SIGNATURE-----

--3MwIy2ne0vdjdPXF--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030429195637.GA6395>