re PR fortran/40839 (gfortran segmentation fault when a unit number is missing)
PR fortran/40839 * io.c (gfc_resolve_dt): Add LOC argument. Fail if dt->io_unit is NULL. Return FAILURE after issuing error about negative UNIT number. (match_io_element): Don't segfault if current_dt->io_unit is NULL. * gfortran.h (gfc_resolve_dt): Adjust prototype. * resolve.c (resolve_code): Adjust caller. * gfortran.dg/pr40839.f90: New test. From-SVN: r150021
Showing
gcc/testsuite/gfortran.dg/pr40839.f90
0 → 100644
Please
register
or
sign in
to comment