From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7058 invoked by alias); 31 Mar 2010 18:05:37 -0000 Received: (qmail 6939 invoked by uid 48); 31 Mar 2010 18:05:20 -0000 Date: Wed, 31 Mar 2010 18:05:00 -0000 Message-ID: <20100331180520.6938.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/35810] [TR 15581 / F2003] Automatic reallocation on assignment to allocatable variables 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-03/txt/msg03180.txt.bz2 ------- Comment #7 from burnus at gcc dot gnu dot org 2010-03-31 18:05 ------- Note: For coarrays/coindexed variables, the shape must be the same. That means that there is _no_ reallocate on assignment, cf. F2008, "7.2.1.2 Intrinsic assignment statement": "In an intrinsic assignment statement, [...] (3) the variable and expr shall be conformable unless the variable is an allocatable array that has the same rank as expr and is neither a coarray nor a coindexed object," -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35810