Le 11/10/2022 à 22:23, Harald Anlauf via Fortran a écrit :
Dear all,

we need to check that the operands of arithmetic binary operations
are consistent and of numeric type.

The PR reported an issue for multiplication ("*"), but we better
extend this to the other binary operations.

I chose the following solution:
- consistent types for +,-,*,/, keeping an internal error if any
   unhandled type shows up,

I thought it was insufficient for cases where types are consistent but invalid, for example:
   print *, [real :: ([.true.])] / [real :: ([.false.])]
but this case is properly caught, and a few other as well, so no problem.

- numeric types for **

Regtested on x86_64-pc-linux-gnu.  OK for mainline?

Yes, thanks.

Reply via email to