From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8771 invoked by alias); 3 Feb 2007 13:39:13 -0000 Received: (qmail 8685 invoked by alias); 3 Feb 2007 13:38:58 -0000 Date: Sat, 03 Feb 2007 13:39:00 -0000 Message-ID: <20070203133858.8684.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/30660] Allocatable components of a derived type "require" the SAVE attribute. In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "pault at gcc dot gnu dot org" 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: 2007-02/txt/msg00220.txt.bz2 ------- Comment #4 from pault at gcc dot gnu dot org 2007-02-03 13:38 ------- Subject: Bug 30660 Author: pault Date: Sat Feb 3 13:38:42 2007 New Revision: 121541 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=121541 Log: 2007-02-03 Paul Thomas PR fortran/30514 * array.c (match_array_element_spec): If the length of an array is negative, adjust the upper limit to make it zero length. PR fortran/30660 * resolve.c (pure_function, resolve_function): Initialize name to null to clear up build warnings. (resolve_fl_variable): Look at components explicitly to check for default initializer, rather than using gfc_default_initializer. 2007-02-03 Paul Thomas PR fortran/30514 * gfortran.dg/zero_sized_2.f90: New test. PR fortran/30660 * gfortran.dg/alloc_comp_basics_4.f90: New test. PR fortran/29820 * gfortran.dg/actual_array_interface_1.f90: Copy source to empty file. Added: trunk/gcc/testsuite/gfortran.dg/alloc_comp_basics_4.f90 trunk/gcc/testsuite/gfortran.dg/zero_sized_2.f90 Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/array.c trunk/gcc/fortran/resolve.c trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/gfortran.dg/actual_array_interface_1.f90 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30660