This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH]: Don't pack a typedef of a struct


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]