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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



It should be a problem in gcc-3.0, also the SDE compiler has a problem with
that, but it's going to be fixed.

/Carsten


Ralf Baechle wrote:

> On Thu, Dec 05, 2002 at 11:47:26AM +0100, Carsten Langgaard wrote:
>
> > Some compiler reject a zero-length array in the middle of a structure,
> > and report it as an error.
> > So could we please redo the change, that has recently been done to
> > include/linux/raid/md_p.h (see patch below).
>
> Hmm...  What compiler version is that?  The gcc documentation explicitly
> permits empty arrays.
>
>   Ralf

--
_    _ ____  ___   Carsten Langgaard   Mailto:carstenl@mips.com
|\  /|||___)(___   MIPS Denmark        Direct: +45 4486 5527
| \/ |||    ____)  Lautrupvang 4B      Switch: +45 4486 5555
  TECHNOLOGIES     2750 Ballerup       Fax...: +45 4486 5556
                   Denmark             http://www.mips.com





[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux