This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH]: Don't pack a typedef of a struct
- From: Nathan Sidwell <nathan at codesourcery dot com>
- To: Hans-Peter Nilsson <hp at bitrange dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 16 Jul 2003 11:54:00 +0100
- Subject: Re: [PATCH]: Don't pack a typedef of a struct
- Organization: Codesourcery LLC
- References: <Pine.BSF.4.44.0307160614130.99649-100000@dair.pair.com>
Hans-Peter Nilsson wrote:
Typos. Should attempt to have size -1 for the error cases,
because "int x[0];" compiles. The code compiles without your
patch! (cross to mmix-knuth-mmixware, which should be
irrelevant) Perhaps you forgot to run the test before your
patch too.
The patch didn't change that - so it'll work before and after. But you
are correct about zero length arrays (wow!).
nathan
--
Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC
The voices in my head said this was stupid too
nathan@codesourcery.com :: http://www.planetfall.pwp.blueyonder.co.uk