how widespread is this cpp bug?

Rick Kimball rick at kimbal.UUCP
Sun Dec 4 11:30:13 AEST 1988


>From article <408 at marob.MASA.COM>, by daveh at marob.MASA.COM (Dave Hammond):
> In article <49179 at pyramid.pyramid.com> markhall at pyramid.UUCP (Mark Hall) writes:
>The following code compiles and runs on pyramid, att-3b2, and sun3:
>
>	#include <stdio.h>
>	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 at kimbal ..!gatech!fabscal!kimbal!rick ..!ucf-cs!sdgsun!kimbal!rick



More information about the Comp.lang.c mailing list