Path: utzoo!utgpu!watmath!clyde!att!pacbell!hoptoad!peora!pcsi!kimbal!rick
From: rick@kimbal.UUCP (Rick Kimball)
Newsgroups: comp.lang.c
Subject: Re: how widespread is this cpp bug?
Message-ID: <819@kimbal.UUCP>
Date: 4 Dec 88 01:30:13 GMT
References: <408@marob.MASA.COM>
Organization: Mac Source BBS, Altamonte Springs, FL (407)862-6214
Lines: 23

From article <408@marob.MASA.COM>, by daveh@marob.MASA.COM (Dave Hammond):
> In article <49179@pyramid.pyramid.com> markhall@pyramid.UUCP (Mark Hall) writes:
>The following code compiles and runs on pyramid, att-3b2, and sun3:
>
>	#include 
>	main() 
>	{
>		prin/* comment in the middle */tf ( "Hello World.\n" );
>	}
>
On AT&T UNIX-PC SYSTEM V V3. 51 the standard cpp gets it wrong
however, GCC V1.30 gets it right:

$ gcc -O 6449.c -o 6449
6449.c: In function main:
6449.c:7: undeclared variable `prin' (first use here)
6449.c:7: parse error before `tf'

-- 
____________________________________________________________________________
Rick Kimball | Mac Source BBS, Altamonte Springs, FL     DATA (407) 862-6214
             |                                          VOICE (407) 788-6875
UUCP: rick@kimbal ..!gatech!fabscal!kimbal!rick ..!ucf-cs!sdgsun!kimbal!rick