From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29377 invoked by alias); 25 Sep 2010 14:27:35 -0000 Received: (qmail 29361 invoked by uid 22791); 25 Sep 2010 14:27:34 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,MISSING_MID X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 25 Sep 2010 14:27:29 +0000 From: "domob at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/45776] Full implementation of variable definition contexts (and related checks) X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Keywords: accepts-invalid X-Bugzilla-Severity: normal X-Bugzilla-Who: domob at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: domob at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Sat, 25 Sep 2010 16:40:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2010-09/txt/msg02776.txt.bz2 Message-ID: <20100925164000.9FVdg1PnljfUgkPAjKErJ6fQHH0kW9Pla1fvsAwr058@z> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45776 --- Comment #2 from Daniel Kraft 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 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 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.