From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7369 invoked by alias); 7 Feb 2008 17:25:20 -0000 Received: (qmail 6890 invoked by uid 48); 7 Feb 2008 17:24:38 -0000 Date: Thu, 07 Feb 2008 17:25:00 -0000 Message-ID: <20080207172438.6889.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/32795] allocatable components are nullified prematurely In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "dfranke 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: 2008-02/txt/msg00856.txt.bz2 ------- Comment #8 from dfranke at gcc dot gnu dot org 2008-02-07 17:24 ------- > Could somebody check the memory leakage for me, please? type :: a integer, allocatable :: i(:) end type a type(a) :: x, y x = a ((/ 1,2,3 /)) ! y = a (x%i(1:3)) ! ok ! y = a (x%i(1:)) ! ok ! y = a (x%i(:3)) ! ok ! y = a (x%i(:)) ! ok ! y = a (x%i) ! ok ! y = x ! ok end Test in comment #2 works on i686-pc-linux-gnu as well. Thanks for fixing this! -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32795