[Bug fortran/45776] Full implementation of variable definition contexts (and related checks)

domob at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Sep 25 16:40:00 GMT 2010


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45776

--- Comment #2 from Daniel Kraft <domob at gcc dot gnu.org> 2010-09-25 14:27:27 UTC ---
Author: domob
Date: Sat Sep 25 14:27:20 2010
New Revision: 164619

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=164619
Log:
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.

Added:
    trunk/gcc/testsuite/gfortran.dg/io_constraints_6.f03
    trunk/gcc/testsuite/gfortran.dg/io_constraints_7.f03
    trunk/gcc/testsuite/gfortran.dg/newunit_2.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/gfortran.h
    trunk/gcc/fortran/io.c
    trunk/gcc/fortran/resolve.c
    trunk/gcc/testsuite/ChangeLog

-- 
Configure bugmail: http://gcc.gnu.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the Gcc-bugs mailing list