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 Lines: 20 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