Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!mnetor!seismo!mcvax!diku!olamb!kimcm
From: kimcm@olamb.UUCP (Kim Chr. Madsen)
Newsgroups: comp.bugs.sys5
Subject: Re: chars in conditional expression, 3b2 C compiler
Message-ID: <189@olamb.UUCP>
Date: Tue, 30-Dec-86 18:00:00 EST
Article-I.D.: olamb.189
Posted: Tue Dec 30 18:00:00 1986
Date-Received: Thu, 1-Jan-87 03:43:22 EST
References: <2489@sdsu.UUCP>
Organization: AmbraSoft A/S (Denmark)
Lines: 22

In article <2489@sdsu.UUCP>, dlong@sdsu.UUCP (Dean Long) writes:
> Try these two commands on a 3b2 running SYSV unix on the following program:
> 
> cc -c sub.c		# should work OK
> cc -DCRASH -c sub.c	# /lib/ccom should core dump
> 
> [some code]....


Well, tried this one out without any problems on this 3b2 running UNIX
System V R2.1 are you running Release 3 or an older (pre 2.1 release)
system V.

The only thing that really bugs me is the fact that chars are unsigned
and therefore the following code will fail:

	while ((c=getc(stream)) != EOF) putchar(c);

And you will have to redefine EOF to 255 (0377 or 0xff) or cast it to a char!


						Kim Chr. Madsen