Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!bloom-beacon!think!ames!oliveb!sun!thetone!swilson From: swilson%thetone@Sun.COM (Scott Wilson) Newsgroups: comp.sys.mac.programmer Subject: possible THINK C 3.0 bug Message-ID: <72894@sun.uucp> Date: 13 Oct 88 17:06:53 GMT Sender: news@sun.uucp Reply-To: swilson@sun.UUCP () Organization: Sun Microsystems, Mountain View Lines: 33 Having cried bug at least once too often in my life, I'll put this in the form of a question. According to K&R 1st ed. page 198 it says: When an initializer applies to a scalar (a pointer or object of arithmetic type), it consists of a single expression, perhaps in braces. and K&R 2nd ed. page 219 says: The initializer for a pointer or an object of arithmetic type is a single expression, perhaps in braces. yet the following short program produces an error message and will not compile under THINK C 3.0: int x = { 1 }; main() { printf("x = %d\n", x); } The offending line is the first and the error message is "too many initializers." Is there any reason why this isn't a bug? -- Scott Wilson arpa: swilson@sun.com Sun Microsystems uucp: ...!sun!swilson Mt. View, CA