battle@alphard.cs.utk.edu (David Battle) (11/17/89)
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
chris@mimsy.umd.edu (Chris Torek) (11/20/89)
In article <1376@utkcs2.cs.utk.edu> battle@alphard.cs.utk.edu (David Battle) writes: [some lines deleted] >% cat > foo.c >int x = (int)(0.45 * 100); >% cc -c foo.c >"foo.c", line 1: illegal initialization >% Yes, it is a bug. DEC copied it from BSD, where it was in PCC for years. It was fixed in the Tahoe release, or maybe a bit later. I expect DEC will pick up the fix in a few more years. -- In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163) Domain: chris@cs.umd.edu Path: uunet!mimsy!chris