From owner-freebsd-stable@FreeBSD.ORG Tue Apr 29 12:56:41 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A56EB37B401 for ; Tue, 29 Apr 2003 12:56:41 -0700 (PDT) Received: from mailout.informatik.tu-muenchen.de (mailout.informatik.tu-muenchen.de [131.159.0.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 04F0E43F93 for ; Tue, 29 Apr 2003 12:56:40 -0700 (PDT) (envelope-from barner@in.tum.de) Received: from mailrelay1.informatik.tu-muenchen.de (mailrelay1.informatik.tu-muenchen.de [131.159.254.5]) by mailout.informatik.tu-muenchen.de (Postfix) with ESMTP id 2C9D66740; Tue, 29 Apr 2003 21:56:39 +0200 (MEST) Received: from mail.informatik.tu-muenchen.de (mail.informatik.tu-muenchen.de [131.159.0.26]) by mailrelay1.informatik.tu-muenchen.de (Postfix) with ESMTP id 1DAFE79BF; Tue, 29 Apr 2003 21:56:39 +0200 (MEST) Received: from zi025.glhnet.mhn.de (unknown [129.187.19.157]) by mail.informatik.tu-muenchen.de (Postfix) with ESMTP id 07D6C98; Tue, 29 Apr 2003 21:56:39 +0200 (MEST) Received: by zi025.glhnet.mhn.de (Postfix, from userid 1000) id B3462376A5; Tue, 29 Apr 2003 21:56:37 +0200 (CEST) Date: Tue, 29 Apr 2003 21:56:37 +0200 From: Simon Barner To: Paul Marquis Message-ID: <20030429195637.GA6395@zi025.glhnet.mhn.de> References: <20030429143841.GA5828@zi025.glhnet.mhn.de> <200304291501.02430.pmarquis@pobox.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="3MwIy2ne0vdjdPXF" Content-Disposition: inline In-Reply-To: <200304291501.02430.pmarquis@pobox.com> User-Agent: Mutt/1.5.4i cc: freebsd-stable@freebsd.org Subject: Re: Bug in g++ 2.95.4 (Pointer to member functions) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Apr 2003 19:56:42 -0000 --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--