[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] zero length array in nocommon
From: |
Joerg Wunsch |
Subject: |
Re: [avr-gcc-list] zero length array in nocommon |
Date: |
Thu, 24 Sep 2009 06:20:02 +0200 (MET DST) |
Ruud Vlaming <address@hidden> wrote:
>> No idea why the behaviour changes, but as a note of warning: a
>> zero-length array is not allowed by the C standard.
> Well, mayby not in ISO C, but certainly in GNU C:
I know, but I've only used it as a flexible array member in the past,
where I'd prefer the C99 way now.
In your case, I'd revert the code to the portable #ifdef.
Anyway, you're right, as long as GCC claims support for it, it ought
to work, so you might consider filing a bug report (unless there's
already one).
--
cheers, J"org .-.-. --... ...-- -.. . DL8DTL
http://www.sax.de/~joerg/ NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)
- [avr-gcc-list] zero length array in nocommon, Ruud Vlaming, 2009/09/23
- Re: [avr-gcc-list] zero length array in nocommon, Joerg Wunsch, 2009/09/23
- Re: [avr-gcc-list] zero length array in nocommon, Ruud Vlaming, 2009/09/23
- Re: [avr-gcc-list] zero length array in nocommon, Dave Hylands, 2009/09/23
- Re: [avr-gcc-list] zero length array in nocommon, bleverett, 2009/09/23
- RE: [avr-gcc-list] zero length array in nocommon, Weddington, Eric, 2009/09/23
- Re: [avr-gcc-list] zero length array in nocommon, Ruud Vlaming, 2009/09/24
- RE: [avr-gcc-list] zero length array in nocommon, Weddington, Eric, 2009/09/24
- Re: [avr-gcc-list] zero length array in nocommon,
Joerg Wunsch <=
- Re: [avr-gcc-list] zero length array in nocommon, Ruud Vlaming, 2009/09/24
- [avr-gcc-list] Re: zero length array in nocommon, David Brown, 2009/09/24
- Re: [avr-gcc-list] Re: zero length array in nocommon, Ruud Vlaming, 2009/09/24
- [avr-gcc-list] Re: zero length array in nocommon, David Brown, 2009/09/24
- RE: [avr-gcc-list] Re: zero length array in nocommon, Weddington, Eric, 2009/09/24
- [avr-gcc-list] Re: zero length array in nocommon, David Brown, 2009/09/24
- RE: [avr-gcc-list] Re: zero length array in nocommon, Weddington, Eric, 2009/09/24
- [avr-gcc-list] Re: zero length array in nocommon, David Brown, 2009/09/24
- RE: [avr-gcc-list] Re: zero length array in nocommon, Weddington, Eric, 2009/09/24
- Re: [avr-gcc-list] Re: zero length array in nocommon, Joerg Wunsch, 2009/09/28