Compilers differ in operator precedence

I don’t agree with this at all.

R1023 defined-binary-op is . letter [ letter ] … .

There is no way that // can be interpreted as a defined-binary-op. These are syntax rules, and // is its own syntax term that appears in:

R1010 level-3-expr is [ level-3-expr concat-op ] level-2-expr
R1011 concat-op is //

That you extended the intrinsic with your own generic procedure does not magically make the intrinsic operator a defined-binary-op. Therefore, its precedence is unchanged.

I talk about operator precedence in Doctor Fortran in “Order! Order!” - Doctor Fortran (stevelionel.com)

2 Likes