Path: utzoo!mnetor!tmsoft!torsqnt!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!gem.mps.ohio-state.edu!usc!snorkelwacker!bloom-beacon!eru!luth!sunic!chalmers!mathrt0.math.chalmers.se!mathrt0.math.chalmers.se!utcrt1!olovsson From: olovsson@ce.chalmers.se. (Tomas Olovsson) Newsgroups: comp.sys.ibm.pc.rt Subject: Problem with hc Message-ID: <1732@mathrt0.math.chalmers.se> Date: 21 Nov 89 10:07:27 GMT Sender: news@mathrt0.math.chalmers.se Reply-To: olovsson@ce.chalmers.se Organization: Chalmers University of Technology, Gothenburg, Sweden. Lines: 29 Hello everyone! I have problems with hc accepting constructions like: main() { int i; (int)i = 0; } % hc c.c E "c.c",L5/C12: (syntactic) unexpected symbol:'=' REPAIR: ';' replaces '='@"c.c",L5/C12 1 user error No warnings All other C-compilers seem to accept this construction. For hc the line has to be changed to: ((int) i) = 0; Is this correct (or intentional)? ----------------------------------------------------------------------------- Tomas Olovsson olovsson@ce.chalmers.se