From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103734,53de43ba5dc1e14f,start X-Google-Attributes: gid103734,public X-Google-Thread: 1164f8,53de43ba5dc1e14f,start X-Google-Attributes: gid1164f8,public X-Google-Thread: 10f9b1,53de43ba5dc1e14f,start X-Google-Attributes: gid10f9b1,public X-Google-Thread: 1014db,53de43ba5dc1e14f,start X-Google-Attributes: gid1014db,public X-Google-ArrivalTime: 1989-11-16 19:42:36 PST Xref: utzoo comp.lang.c:23778 comp.unix.wizards:19370 comp.sys.dec:2133 comp.windows.x:15200 Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!shadooby!samsung!uakari.primate.wisc.edu!uflorida!stat!fsu!prism!gatech!utkcs2!alphard!battle From: battle@alphard.cs.utk.edu (David Battle) Newsgroups: comp.lang.c,comp.unix.wizards,comp.sys.dec,comp.windows.x Subject: bug in Ultrix C compiler? Summary: Can't initialize ints to expressions involving floats. Keywords: xtank Ultrix cc Message-ID: <1376@utkcs2.cs.utk.edu> Date: 17 Nov 89 03:42:36 GMT Sender: news@utkcs2.cs.utk.edu Reply-To: battle@alphard.cs.utk.edu (David Battle) Followup-To: comp.lang.c Organization: CS Dept -- University of TN, Knoxville In attempting to compile XTank, I discovered the following possible problem with the version of the Ultrix C compiler we are running: % cat > foo.c int x = (int)(0.45 * 100); % gcc -c foo.c % gcc -v gcc version 1.35 % cc -c foo.c "foo.c", line 1: illegal initialization % Oh, by the way: % strings /vmunix | grep "U.*[Xx].*#[0-9]*:" Ultrix-32 V3.1 (Rev. 9) System #1: Wed Sep 20 17:47:49 EDT 1989 -David L. Battle battle@battle.esd.ornl.gov battle@utkux1.utk.edu