From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30147 invoked by alias); 20 Oct 2009 20:06:15 -0000 Received: (qmail 30077 invoked by uid 48); 20 Oct 2009 20:06:02 -0000 Date: Tue, 20 Oct 2009 20:06:00 -0000 Message-ID: <20091020200602.30076.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: "janus 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: 2009-10/txt/msg01764.txt.bz2 ------- Comment #10 from janus at gcc dot gnu dot org 2009-10-20 20:06 ------- I have re-checked the F03 standard to verify that the first argument of PACK can indeed be of arbitrary type: 13.7.89 PACK (ARRAY, MASK [, VECTOR]) Description. Pack an array into an array of rank one under the control of a Class. Transformational function. Arguments. ARRAY may be of any type. It shall not be scalar. ... In the gfortran testsuite PACK seems to be tested with all intrinsic types (logical, integer, real, complex, character), but not with derived types. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41478