This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: GCC beaten by ICC in stupid trig test!


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).




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]