Program main
integer :: file_sz
OPEN(UNIT=10,FILE=‘test.in’)
INQUIRE(UNIT=10, SIZE=file_sz)
print*,file_sz
CLOSE(UNIT=10)
END
ls:
-rw-r–r-- 1 5 Feb 18 09:49 test.in
This program always returns a large negative number for file_sz (it should be 5). Is SIZE= not implemented? Same program (and test.in file) using gfortran and ifort works correctly.
Very Sorry about this. It looks to have started failing again in 14.2. We normally catch these but for some reason the test for TPR#19140 missed being added to our regression test suite. I’ve reopened the TPR and asked then to make sure it gets added once fixed again.