From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <4A5BF452.1090502@tecmav.com> References: <37a4205e0ebcee3f0fd82131999a1e5d@quanstro.net> <4A5BF452.1090502@tecmav.com> Date: Mon, 13 Jul 2009 21:00:17 -0700 Message-ID: Subject: Re: [9fans] C compiler question From: Russ Cox To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Topicbox-Message-UUID: 1ea1558a-ead5-11e9-9d60-3106f5b1d025 > Yes, but in my example - sorry - "NeverDefined" doesn't mean "declared and > defined elsewhere (or not)" but "not declared .and. not defined". no and yes. union U { struct { struct NeverDefined nf; // Unknown, definition not #included } S1 }; declares a struct named NeverDefined just by mentioning it. the compiler should reject the use because NeverDefined is not defined. it's just a bug. i don't have a copy of the compiler to play with but erik's patch seems fine. russ