On Mon, 4 Mar 2002, M. Warner Losh wrote: MWL>In message: <[EMAIL PROTECTED]> MWL> Erik Trulsson <[EMAIL PROTECTED]> writes: MWL>: I think it is still there (and my draft copy says the same thing). MWL>: I was thinking about the original C89 standard which does not allow it MWL>: (and does not allow incomplete array types in structs). Guess I should MWL>: have said which standard I was referring to. MWL> MWL>struct foo { MWL> char array[0]; MWL>}; MWL> MWL>appears to be in C-99 but not C-89. If you have the draft, so far MWL>the only thing I've noticed that is different between the draft MWL>and the final standard is that there's 10-15 more footnotes in the MWL>final standard than were in the final draft. MWL> MWL>Warner
This should be struct foo { char array[]; }; according to C-99, on which gcc2 barfs. Don't know, whether gcc3 can handle this. harti -- harti brandt, http://www.fokus.gmd.de/research/cc/cats/employees/hartmut.brandt/private [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message