From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24953 invoked by alias); 29 Oct 2009 22:52:21 -0000 Received: (qmail 24870 invoked by uid 48); 29 Oct 2009 22:52:06 -0000 Date: Thu, 29 Oct 2009 22:52:00 -0000 Message-ID: <20091029225206.24869.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/41872] wrong-code: No auto-deallocation for INTENT(OUT) allocatable scalars 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: 2009-10/txt/msg02496.txt.bz2 ------- Comment #1 from burnus at gcc dot gnu dot org 2009-10-29 22:52 ------- Note: For arrays, the following block of trans-expr.c is used: /* If an ALLOCATABLE dummy argument has INTENT(OUT) and is allocated on entry, it must be deallocated. */ if (fsym && fsym->attr.allocatable && fsym->attr.intent == INTENT_OUT) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41872