GCC beaten by ICC in stupid trig test!
Robert Dewar
dewar@gnat.com
Thu Mar 25 06:14:00 GMT 2004
Dave Korn wrote:
> IIUIC the fact that the + operator is specified in the standard as binding
> left-to-right imply that "a + b + c" with no brackets *has* to be
> interpreted as "(a + b) + c".
>
> Either that, or I'm being dumb.
In Fortran, this is an incorrect interpretation, the standard definitely
differentiates between (a+b)+c and a+b+c. So a Fortran compiler is
allowed to reassociate the second expression (but it is a bad idea, and
it is desirable to have a mode in which this freedom is not taken
advangtage of).
More information about the Gcc
mailing list