]> git.ipfire.org Git - thirdparty/gcc.git/commit
2010-09-25 Daniel Kraft <d@domob.eu>
authordomob <domob@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 25 Sep 2010 14:27:20 +0000 (14:27 +0000)
committerdomob <domob@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 25 Sep 2010 14:27:20 +0000 (14:27 +0000)
commit6f73755f048fcab5d30423fc578faf2fee5bef0c
tree545accb9fd475dcf562501179762b5ef130d655c
parentcb3959cc0d03f7eb681af46b98c8f8112dacb26c
2010-09-25  Daniel Kraft  <d@domob.eu>

PR fortran/45776
* gfortran.h (struct gfc_dt): New member `dt_io_kind'.
* io.c (resolve_tag): F2008 check for NEWUNIT and variable
definition checks for NEWUNIT, IOSTAT, SIZE and IOMSG.
(gfc_free_dt): Correctly handle freeing of `dt_io_kind' and
`extra_comma' with changed semantics.
(gfc_resolve_dt): Check variable definitions.
(match_io_element): Remove INTENT and PURE checks here and
initialize code->ext.dt member.
(match_io): Set dt->dt_io_kind.
(gfc_resolve_inquire): Check variable definition for all tags
except UNIT, FILE and ID.
* resolve.c (resolve_transfer): Variable definition check.

2010-09-25  Daniel Kraft  <d@domob.eu>

PR fortran/45776
* gfortran.dg/io_constraints_6.f03: New test.
* gfortran.dg/io_constraints_7.f03: New test.
* gfortran.dg/newunit_2.f90: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@164619 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/fortran/ChangeLog
gcc/fortran/gfortran.h
gcc/fortran/io.c
gcc/fortran/resolve.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/io_constraints_6.f03 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/io_constraints_7.f03 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/newunit_2.f90 [new file with mode: 0644]