[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] Re: [4363] MusicPal: fix gcc4 build (Jan Kiszka).
From: |
Andreas Schwab |
Subject: |
Re: [Qemu-devel] Re: [4363] MusicPal: fix gcc4 build (Jan Kiszka). |
Date: |
Wed, 07 May 2008 14:26:55 +0200 |
User-agent: |
Gnus/5.110009 (No Gnus v0.9) Emacs/22.1 (gnu/linux) |
"Daniel P. Berrange" <address@hidden> 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.
>>
>> 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.
--
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."