Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!lll-lcc!ames!sri-spam!sri-unix!hplabs!hp-sdd!ncr-sd!sdcsvax!jack!man!sdsu!dlong From: dlong@sdsu.UUCP (Dean Long) Newsgroups: comp.bugs.sys5 Subject: chars in conditional expression, 3b2 C compiler Message-ID: <2489@sdsu.UUCP> Date: Thu, 25-Dec-86 18:23:06 EST Article-I.D.: sdsu.2489 Posted: Thu Dec 25 18:23:06 1986 Date-Received: Tue, 30-Dec-86 20:56:26 EST Reply-To: dlong@sdsu.UUCP (Dean Long) Distribution: world Organization: San Diego State University, Math/Sciences Dept. Lines: 23 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 Does anyone have any ideas? ---------------------------------------------------------------------- sub() { char x; int i; i = ((x > 0) ? 1 : 0); i = ((x >= 1) ? 1 : 0); #ifdef CRASH i = ((x >= 0) ? 1 : 0); #endif } -- Dean Long San Diego State Univ. sdcsvax!sdsu!dlong