From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3535 invoked by alias); 12 Feb 2010 13:51:30 -0000 Received: (qmail 3447 invoked by uid 48); 12 Feb 2010 13:51:17 -0000 Date: Fri, 12 Feb 2010 13:51:00 -0000 Message-ID: <20100212135117.3446.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/40850] double free in nested types with allocatable components In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "domob 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: 2010-02/txt/msg01172.txt.bz2 ------- Comment #8 from domob at gcc dot gnu dot org 2010-02-12 13:51 ------- I hit this bug, too, it seems. My reduced test-case: PROGRAM analysis IMPLICIT NONE TYPE numlist REAL, ALLOCATABLE :: nums(:) END TYPE numlist TYPE(numlist) :: lines ALLOCATE (lines%nums(1)) CALL test ((/ lines /)) CONTAINS SUBROUTINE test (vec) TYPE(numlist), INTENT(IN) :: vec(:) END SUbROUTINE test END PROGRAM analysis This produces 126 lines of -fdump-tree-original, so I hope it may help here as being "simpler" than the one posted by Janus (it seems). -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40850