Article View: comp.sys.ibm.pc.rt
Article #584Problem with hc
From: olovsson Tomas Olovsson
Date: Tue, 21 Nov 1989 10:07
Date: Tue, 21 Nov 1989 10:07
29 lines
1131 bytes
1131 bytes
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
Technical Details
Message-ID:
<1732@mathrt0.math.chalmers.se>Path:
arc1-ca.pugleaf.net!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!olovssonShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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