Subject: Re: Compiler bug?
From: [email-masked] (Fergus Henderson)

28 May 1998 03:16:57 -0700
Message-ID: <[email-masked]>
References: <[email-masked]>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
To: "[email-masked]" <[email-masked]>
Cc: "[email-masked]'" <[email-masked]>

On 26-May-1998, Jimen Ching <[email-masked]> wrote:
> I can't compile this code with b19.  Is this supposed to be allowed?
> 
> #include <stdio.h>
> FILE *xyz = stdin;
> int main() { return 0; }

No, that is not supposed to be allowed.
Your code is not strictly conforming ANSI C.
Use

	FILE *xyz;
	int main() { xyz = stdin; return 0; }

instead.

-- 
Fergus Henderson <[email-masked]>  |  "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh>  |  of excellence is a lethal habit"
PGP: finger [email-masked]        |     -- the last words of T. S. Garp.
-
For help on using this list (especially unsubscribing), send a message to
"[email-masked]" with one line of text: "help".