Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site brl-tgr.ARPA Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!godot!harvard!seismo!brl-tgr!gwyn From: gwyn@brl-tgr.ARPA (Doug Gwyn ) Newsgroups: net.bugs.usg Subject: another problem with PCC ICONs Message-ID: <9349@brl-tgr.ARPA> Date: Tue, 19-Mar-85 20:05:06 EST Article-I.D.: brl-tgr.9349 Posted: Tue Mar 19 20:05:06 1985 Date-Received: Thu, 21-Mar-85 03:10:15 EST Distribution: net Organization: Ballistic Research Lab Lines: 24 To see another problem with integer constants in the UNIX System V Release 2.0 VAX PCC that is related to the bugs I recently posted fixes for, try the following program: /* Test for another PCC ICON bug */ #define MAXSHORT ((short)0177777) /*ARGSUSED*/ main( argc, argv ) char *argv[]; { (void)printf( "%d %d\n", MAXSHORT, (int)MAXSHORT ); return 0; } Again, the USG 3.0 PCC correctly prints "-1" for both numbers, but the 6.0 PCC (with or without my recent ICON bug fixes) prints the second one as "65535". I don't have a simple fix for this; I think the whole matter of painting casts down ICON expressions needs to be reviewed and maybe retracted. I am curious: does anyone at AT&T USDL read these messages? How about sending me a VAX PCC2 to test?