From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13338 invoked by alias); 30 Jan 2012 14:13:55 -0000 Received: (qmail 13328 invoked by uid 22791); 30 Jan 2012 14:13:53 -0000 X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 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; Mon, 30 Jan 2012 14:13:41 +0000 From: "burnus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/52052] New: [Coarray] Properly handle coarray components of derived types Date: Mon, 30 Jan 2012 14:26:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: burnus at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: 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-01/txt/msg03524.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52052 Bug #: 52052 Summary: [Coarray] Properly handle coarray components of derived types Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Keywords: wrong-code Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned@gcc.gnu.org ReportedBy: burnus@gcc.gnu.org Special care needs to be taken with coarrays - and in particular coarray components; they may only be collectively allocated and deallocated. In particular: Intrinsic assignment: Contrary to normal allocatable components, no reallocation is allowed. The programmer guarantees that the shape and type parameters are suitable. Caveat: Be aware of allocatable components nested within coarray components - and issues with polymorphism. Please also check that: - Calling caf_register is done with ALLOCATE, also with SOURCE= - Calling of caf_deregister when leaving the scope/calling DEALLOCATE - Special handling of polymorphic coarray components - Whether there are issues regarding _def_init and _copy; cf. PR 51947. Consider whether a simple INTENT_INOUT for _copy would be more appropriate. - Check that there is indeed no realloc on assignment for coarray variables.