[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--http://www.vcnet.com/bms ]
"Resistance is futile. Open your source code and prepare for assimilation."
- BUG: op_div, Marco Schmidt, 2000/06/22
- Re: BUG: op_div,
Pavel Kankovsky <=