On Thu, Sep 04, 2003 at 11:28:58AM -0500, Dan Nelson wrote: > In the last episode (Sep 04), Alexander Leidinger said: > > - If we depend on it: how hard would it be to rewrite it to not depend > > on 0-sized arrays (and does someone volunteer to rewrite it)? It > > would be nice if someone could point me to the source if it isn't > > an easy task, my contact _at_Intel is willing to convince the > > developers to change icc, but he has to "present a persuasive > > argument to development to pursue a solution". > > If you're talking FreeBSD 5, you should be able to simply subsitute a > C99 "flexible array member" (basically replace "[0]" with "[]") and get > the same effect. 0-length arrays are a gcc extension: But even with flexible array members you cannot create an object with size 0. The struct must have at least one additional member and you cannot use sizeof on the flexible array member itself as its type is incomplete. Cheers, StefanReceived on Fri Sep 05 2003 - 02:04:43 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:21 UTC