Date: Mon, 4 Mar 2002 17:43:47 +0100 (CET) From: Harti Brandt <brandt@fokus.gmd.de> To: "M. Warner Losh" <imp@village.org> Cc: ertr1013@student.uu.se, <freebsd@damnhippie.dyndns.org>, <freebsd-hackers@FreeBSD.ORG> Subject: Re: A few questions about a few includes Message-ID: <20020304174200.X74223-100000@beagle.fokus.gmd.de> In-Reply-To: <20020304.093529.35706437.imp@village.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 4 Mar 2002, M. Warner Losh wrote:
MWL>In message: <20020304104158.GB63341@student.uu.se>
MWL> Erik Trulsson <ertr1013@student.uu.se> 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
brandt@fokus.fhg.de
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020304174200.X74223-100000>
