On 11/22/26 17:41, Steve Kargl wrote:

On 11/22/26 00:29, Thomas Koenig wrote:

Am 22.11.26 um 09:00 schrieb Steve Kargl:

Can you point to the text in the standard that supports this claim?

Again, I have not found anything that would allow such a rearrangement.
Can you point me towards something that does?

That's my point (and I could be wrong).  The standard says nothing
about how a processor can transform a group of statements other
than 5.3.5.  In 5.3.5, one finds that magic "as if".

A compiler can transform

   tmp = a + b
   tmp = tmp + c
   tmp = tmp + d

as-if it was written as

   tmp = a + b + c + d

In clause 1, one finds

   This document does not specify
    * the mechanism by which programs are transformed
      for use on computing systems,
    ...
    * the program and processor behavior when this document
      fails to establish an interpretation except for the
      processor detection and reporting requirements in items
      (2) to (10) of 4.2,

This might be superfluous, but as (once) member of the Fortran Standardization Committee, I might add that a disagreement about the correct interpretation of the Standard, *that leads to differing results in test cases* for well regarded "processors" claiming to adhere to that Standard, is a valid reason to open a "Interpretation Request".

Kind regards,

--
Toon Moene - e-mail: [email protected] - phone: +31 346 214290
Saturnushof 14, 3738 XG  Maartensdijk, The Netherlands

Reply via email to