linux-mips
[Top] [All Lists]

Re: Compiler problems with zero-length array in the middle of a struct

To: Carsten Langgaard <carstenl@mips.com>
Subject: Re: Compiler problems with zero-length array in the middle of a struct
From: Alan Cox <alan@lxorguk.ukuu.org.uk>
Date: 05 Dec 2002 17:29:33 +0000
Cc: Ralf Baechle <ralf@linux-mips.org>, linux-mips@linux-mips.org
In-reply-to: <3DEF5606.E34BD27A@mips.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <3DEF2EBE.F273B44A@mips.com> <20021205141018.A6106@linux-mips.org> <3DEF5606.E34BD27A@mips.com>
Sender: linux-mips-bounce@linux-mips.org
On Thu, 2002-12-05 at 13:35, Carsten Langgaard wrote:
> > Hmm...  What compiler version is that?  The gcc documentation explicitly
> > permits empty arrays.

There was some discussion about this and what to do with zero sized
objects. In the C++ universe it seems to be horribly complicated with
rules about two objects not having the same address.



<Prev in Thread] Current Thread [Next in Thread>