From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6903 invoked by alias); 1 Mar 2007 09:44:22 -0000 Received: (qmail 6831 invoked by alias); 1 Mar 2007 09:44:07 -0000 Date: Thu, 01 Mar 2007 09:44:00 -0000 Message-ID: <20070301094407.6830.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/30660] [4.2 only] 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: "burnus 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-03/txt/msg00014.txt.bz2 ------- Comment #11 from burnus at gcc dot gnu dot org 2007-03-01 09:44 ------- Subject: Bug 30660 Author: burnus Date: Thu Mar 1 09:43:53 2007 New Revision: 122427 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=122427 Log: fortran/ 2007-03-01 Paul Thomas Backport from trunk PR fortran/30660 * resolve.c (pure_function, resolve_function): Initialize name to null to clear up build warnings. (has_default_initializer): New function. (resolve_fl_variable): Call has_default_initializer to determine if the derived type has a default initializer to its ultimate components. testsuite/ 2007-03-01 Paul Thomas Backport from trunk 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: branches/gcc-4_2-branch/gcc/testsuite/gfortran.dg/alloc_comp_basics_4.f90 Modified: branches/gcc-4_2-branch/gcc/fortran/ChangeLog branches/gcc-4_2-branch/gcc/fortran/resolve.c branches/gcc-4_2-branch/gcc/testsuite/ChangeLog branches/gcc-4_2-branch/gcc/testsuite/gfortran.dg/actual_array_interface_1.f90 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30660