From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6043 invoked by alias); 6 Jul 2012 16:06:29 -0000 Received: (qmail 6025 invoked by uid 22791); 6 Jul 2012 16:06:28 -0000 X-SWARE-Spam-Status: No, hits=-4.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,KHOP_THREADED X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 06 Jul 2012 16:06:14 +0000 From: "liluli2011 at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/53851] Automatic silent allocation/deallocation of allocatable variables in several instances Date: Fri, 06 Jul 2012 16:06:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: liluli2011 at gmail dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 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: 2012-07/txt/msg00629.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53851 --- Comment #3 from liluli2011 at gmail dot com 2012-07-06 16:06:12 UTC --- Thank you Harald and karql. I should have read the new (or not so new) features of the 2003 standard before posting instead of relying so much on the comparison with ifort. In fact, (re)allocation on assignment does make sense, although it can be also potentially dangerous. Thus it is convenient that there are ways to disable it.