From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23325 invoked by alias); 22 Dec 2008 05:19:52 -0000 Received: (qmail 23235 invoked by uid 48); 22 Dec 2008 05:18:32 -0000 Date: Mon, 22 Dec 2008 05:19:00 -0000 Message-ID: <20081222051832.23234.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/38602] [regression 4.4] segfault - optional arguments, generics, interface problem, iso_varying_string ?? In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "jvdelisle 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-12/txt/msg02026.txt.bz2 ------- Comment #4 from jvdelisle at gcc dot gnu dot org 2008-12-22 05:18 ------- The test case passes at r142147 and fails at r142148 The patch to pr34820 caused this regression PR fortran/34820 * trans-expr.c (gfc_conv_function_call): Remove all code to deallocate intent out derived types with allocatable components. (gfc_trans_assignment_1): An assignment from a scalar to an array of derived types with allocatable components, requires a deep copy to each array element and deallocation of the converted rhs expression afterwards. * trans-array.c : Minor whitespace. * trans-decl.c (init_intent_out_dt): Add code to deallocate allocatable components of derived types with intent out. (generate_local_decl): If these types are unused, set them referenced anyway but allow the uninitialized warning. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38602