Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jtijc-0007ZE-AO for qemu-devel@nongnu.org; Wed, 07 May 2008 08:27:00 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jtija-0007Yv-VH for qemu-devel@nongnu.org; Wed, 07 May 2008 08:27:00 -0400 Received: from [199.232.76.173] (port=56392 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jtija-0007Ys-OE for qemu-devel@nongnu.org; Wed, 07 May 2008 08:26:58 -0400 Received: from ns.suse.de ([195.135.220.2] helo=mx1.suse.de) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Jtija-00041q-BR for qemu-devel@nongnu.org; Wed, 07 May 2008 08:26:58 -0400 From: Andreas Schwab Subject: Re: [Qemu-devel] Re: [4363] MusicPal: fix gcc4 build (Jan Kiszka). References: <4820810A.6060607@web.de> <200805071253.45209.paul@codesourcery.com> <20080507120132.GC20573@redhat.com> Date: Wed, 07 May 2008 14:26:55 +0200 In-Reply-To: <20080507120132.GC20573@redhat.com> (Daniel P. Berrange's message of "Wed, 7 May 2008 13:01:33 +0100") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Daniel P. Berrange" Cc: qemu-devel@nongnu.org "Daniel P. Berrange" writes: > On Wed, May 07, 2008 at 12:53:42PM +0100, Paul Brook wrote: >> > I'm not sure what's wrong with void * arithmetics though. They are >> > specified (somewhere) to work as if the type was a char *, and the >> > only annoyance is that you have to remember that. >>=20 >> It doesn't work in C++ for a start. >> I thought it was a GCC extension, though I could be wrong about that. > > IIRC, arithmetic on void * is said to be undefined by the standard Not only undefined, but a constraint violation, ie. completely outside the language. Andreas. --=20 Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux Products GmbH, Maxfeldstra=DFe 5, 90409 N=FCrnberg, Germany PGP key fingerprint =3D 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED= 5 "And now for something completely different."