[net.bugs.usg] another problem with PCC ICONs

gwyn@brl-tgr.ARPA (Doug Gwyn <gwyn>) (03/20/85)

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?