[PATCH, libfortran] PR 48587 Newunit allocator

Dominique d'Humières dominiq@lps.ens.fr
Thu Oct 13 21:00:00 GMT 2016


With the patch, the following code

integer :: i, j
i = -10
write(unit=i,fmt=*, iostat=j) 10
print *, j
end

fails at run time with

Assertion failed: (ind >= 0 && ind < newunit_size), function newunit_free, file ../../../work/libgfortran/io/unit.c, line 966.

Without the patch the output is 5002.

TIA

Dominique



More information about the Gcc-patches mailing list