From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 329 invoked by alias); 30 Sep 2012 18:02:47 -0000 Received: (qmail 32751 invoked by uid 48); 30 Sep 2012 18:02:34 -0000 From: "burnus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/54618] [OOP] wrong-code with CLASS(...), INTENT(OUT) -- and OPTIONAL or ALLOCATABLE Date: Sun, 30 Sep 2012 18:02: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: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: burnus at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Attachment #28269 is obsolete Attachment #28278 is obsolete 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-09/txt/msg02471.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54618 Tobias Burnus changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #28269|0 |1 is obsolete| | Attachment #28278|0 |1 is obsolete| | --- Comment #13 from Tobias Burnus 2012-09-30 18:02:33 UTC --- Created attachment 28304 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28304 Updated OPTIONAL patch Current version of my OPTIONAL patch, just to make sure that I don't accidentally delete it locally. It fixes a bunch of issues; however, as the FIXMEs show, there are still wrong-code (segfault at run time) issues related to ELEMENTAL, scalar coarrays and possibly another issue. TODO: - Fix the OPTIONAL issues mentioned above - Support packing of assumed-rank arrays (see just attached test case; but otherwise an unrelated issue) - Fix INTENT(OUT) handling for allocatable polymorphic arrays (cf. comment 0) - Analyse the old issue related to class_array_7.f03 (comment 11, comment 12)