[Bug fortran/84506] INQUIRE(pos=) always sets pos=0 with -fdefault-integer-8
sgk at troutmask dot apl.washington.edu
gcc-bugzilla@gcc.gnu.org
Wed Feb 21 23:59:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84506
--- Comment #3 from Steve Kargl <sgk at troutmask dot apl.washington.edu> ---
Upon closer inspection, gfortran's dump is correct
for both INTEGER and INTEGER(8) for
program TestInquire
integer :: iUnit, iPos
! integer(8) :: iUnit, iPos
open(newunit=iunit, file='output.txt', access='stream', status='replace')
write(iUnit) 'TEXT'
inquire(iUnit, pos=iPos)
print *, iPos
end program TestInquire
INTEGER gives 5 and INTEGER(8) gives 0.
Looks like a Jerry issue. :)
More information about the Gcc-bugs
mailing list