From mboxrd@z Thu Jan 1 00:00:00 1970 From: erik quanstrom Date: Tue, 14 Jul 2009 13:46:54 -0400 To: 9fans@9fans.net Message-ID: <21dabe281409184572838ffa29c8fe14@coraid.com> In-Reply-To: <1247591909.18344.5479.camel@work.SFBay.Sun.COM> References: <1247591909.18344.5479.camel@work.SFBay.Sun.COM> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] C compiler question Topicbox-Message-UUID: 2063e842-ead5-11e9-9d60-3106f5b1d025 > rejecting the struct seems like the right thing to do as per > ISO/IEC 9899:1999 (http://www.open-std.org/JTC1/SC22/wg14/www/docs/n1124.pdf) > sec. 6.7.2.1 para. 2 > > "A structure or union shall not contain a member with incomplete or function type (hence, > a structure shall not contain an instance of itself, but may contain a pointer to an instance > of itself), except that the last member of a structure with more than one named member > may have incomplete array type; such a structure (and any union containing, possibly > recursively, a member that is such a structure) shall not be a member of a structure or an > element of an array." you're implying that the point of the plan 9 compilers is to toe the c99 line. also, a pointer to an incomplete type is used in many places in plan 9 libraries. - erik