This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: GCC beaten by ICC in stupid trig test!
On Wed, 24 Mar 2004, Paul Koning wrote:
> I don't have a C standard, but my copy of Harbison & Steele says what
> I expected about parentheses: "Parentheses do not necessarily force a
> particular evaluation order".
Evaluation order (sequence points) has nothing to do with associativity.
The C syntax specifies that a+b+c means exactly (a+b)+c - but in both
cases, a, b and c can be evaluated in any order.
--
Joseph S. Myers
jsm@polyomino.org.uk