C compiler implements wrong semantics

Chris Torek chris at umcp-cs.UUCP
Mon Feb 3 01:05:32 AEST 1986


PCC is neither `right' nor `wrong'; the behaviour of that kind of
code (`a++ + a') is specifically left undefined.  (The ANSI draft
has the notion of `sequence points' after which all side effects
should have taken place.  An addition within a single expression
is not a sequence point.)
-- 
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 1415)
UUCP:	seismo!umcp-cs!chris
CSNet:	chris at umcp-cs		ARPA:	chris at mimsy.umd.edu



More information about the Comp.unix.wizards mailing list