From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18064 invoked by alias); 11 Jan 2010 13:06:20 -0000 Received: (qmail 17901 invoked by uid 48); 11 Jan 2010 13:06:03 -0000 Date: Mon, 11 Jan 2010 13:06:00 -0000 Message-ID: <20100111130603.17900.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/41478] Corrupted memory using PACK for derived-types with allocated components 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: 2010-01/txt/msg01229.txt.bz2 ------- Comment #22 from burnus at gcc dot gnu dot org 2010-01-11 13:06 ------- (In reply to comment #20) > The patch in comment #19, passes all my tests, but (otherwise you'ld be > disappointed;-) compiling the reduced test in comment #8 gives a "Segmentation > fault" [...] > ../../work/gcc/fortran/trans-array.c:6014 > 6014 tmp = gfc_duplicate_allocatable(dcmp, comp, ctype, > c->as->rank); Because of that line: Dominique, do you have the draft patch for PR 42647 installed? If so, it might be the reason for the problem. Just to add another possibility for the failure. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41478