Open minhqdao opened 1 month ago
Note the following thread on the Fortran discourse has some similarities to this issues, however not sure they are related.
https://fortran-lang.discourse.group/t/why-am-i-getting-an-error-with-list-directed-read/8562
One possible explanation is that the loadtxt
formats always require one space (1x
) to be present after each entry:
this may trigger end-of-record or end-of-file exceptions i.e. if there is no such last space
Description
It's a little bit tricky to reproduce but the
loadtxt
test occasionally fails (maybe 10-20% of the time). Mostly, it happens in the CI with the combination ubuntu-latest/gcc/12/cmake:However, I've also seen it happening with
intel
andintel-classic
:Expected Behaviour
Test reliably not failing.
Version of stdlib
master
Platform and Architecture
CI: Mostly ubuntu-latest, gcc-12, cmake, but also with other combinations, e.g.
ifort