f18-llvm-project icon indicating copy to clipboard operation
f18-llvm-project copied to clipboard

Error with real-valued regular DO loop control variable

Open svedan opened this issue 3 years ago • 2 comments

Failure with this test:

nag_f95_syntax/909t918.f90 error: Must have INTEGER type, but is REAL(4)

Per PKlausler: Error is legitimate due to the use of a real-valued I/O implied DO loop control variable. These have been invalid since at least F’90.
But since other compilers support this case, we need to add this as an extension.

svedan avatar Oct 27 '21 20:10 svedan

Note the error is from semantics. So this will have to be addressed in the FE and in lowering.

svedan avatar Oct 27 '21 20:10 svedan

This is an I/O implied DO loop, not a regular DO loop.

klausler avatar Oct 29 '21 19:10 klausler