Nvfortran: DTIO fails to execute for internal write

The attached test case compiles, but produces the following run time error:

FIO-F-212/formatted write/unit=-1/invalid unit number.
In source file dtio_abstract_01_pos.f90, at line number 80

Note that internal data transfers can also be done through formatted DTIO writes, as can be deduced from one of the bullets in section 12.4 of the current Fortran 2023 standard.

testcase.tar.gz (975 Bytes)

Thanks bader2. I’ve filed an issue report, TPR #35342, and sent it to engineering for review.