On Fri, Oct 08, 2010 at 09:07:27AM +0200, Roberto Bagnara wrote: > In test/small1/array-size-trick.c > > // This should be allowed ! > extern struct foo udp_stats_in6[2 * 2]; > > These lines were added by George Necula in r6563. > I am curious about the meaning of that comment > because, to me, that declaration seems to violate > the C99 standard, 6.7.5.2p1 (The element type > shall not be an incomplete or function type.)
I agree with you, Roberto, this violates the constraints of section 6.7.5.2. By the way, gcc refuses to compile it: error: array type has incomplete element type It does not fail when running the test suite because CIL removes it before gcc can spot it (since it is an unused global). I have removed those lines in svn (r11942). Many thanks, -- Gabriel Kerneis ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb _______________________________________________ CIL-users mailing list CIL-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cil-users