[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: BUG: op_div

From: Pavel Kankovsky
Subject: Re: BUG: op_div
Date: Thu, 22 Jun 2000 22:09:37 +0200 (MET DST)

On Thu, 22 Jun 2000, Marco Schmidt wrote:

>  case op_div:
>               if (top[1])
>                   *top++ = top[0] / top[1];
>             else

Yes, this code is broken. C does not define the order of evaluation of
side-effects wrt other occurrences of the affected variable in the same
expression. This is not a compiler bug (otoh, I'd expect the compiler to
fill the screen with warnings when it encounters such a piece of code).

--Pavel Kankovsky aka Peak  [ Boycott Microsoft-- ]
"Resistance is futile. Open your source code and prepare for assimilation."

reply via email to

[Prev in Thread] Current Thread [Next in Thread]