Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!cuae2!codas!ki4pv!tanner From: tanner@ki4pv.UUCP Newsgroups: comp.lang.c Subject: Re: Re: Auto variable with sizeof == 0 Message-ID: <6937@ki4pv.UUCP> Date: Thu, 12-Feb-87 12:36:03 EST Article-I.D.: ki4pv.6937 Posted: Thu Feb 12 12:36:03 1987 Date-Received: Fri, 13-Feb-87 22:25:48 EST References: <4114@brl-adm.ARPA> <4053@utcsri.UUCP> <159@batcomputer.tn.cornell.edu> Organization: CompuData South, DeLand Lines: 17 ) braner@batcomputer.tn.cornell.edu (braner) writes ) ... char text[] ... ) ... Question: Do some compilers refuse to accept this? Yes, the microsoft compiler (at least the one distributed by SCO as 2.2\(*b) refuses to accept this. Says "unknown size", of all things. I can understand and sympathise with this, of course -- the size is not specified, so I'd consider it unknown too. However, note that the obvious replacement (char text[0]) elicits the same error message, even though the size IS known (to be zero). In all fairness, this is a beta release of the compiler, and it may have been fixed already. -- Tanner Andrews