From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12536 invoked by alias); 2 Feb 2007 13:14:24 -0000 Received: (qmail 12482 invoked by uid 48); 2 Feb 2007 13:14:06 -0000 Date: Fri, 02 Feb 2007 13:14:00 -0000 Message-ID: <20070202131406.12481.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/msg00147.txt.bz2 ------- Comment #2 from pault at gcc dot gnu dot org 2007-02-02 13:14 ------- MODULE types_m TYPE grib_t REAL,DIMENSION(:),ALLOCATABLE :: vdata END TYPE END MODULE MODULE globals_m USE types_m TYPE(grib_t) g_dest ! output field END MODULE Is all that is needed to trigger the fault. I introduced the code that generates the error but it looks to me as if it has been "touched" since. Can you work around by giving the variables the SAVE attribute? Paul -- pault at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last reconfirmed|0000-00-00 00:00:00 |2007-02-02 13:14:05 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30660