From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25988 invoked by alias); 29 Sep 2012 18:33:48 -0000 Received: (qmail 25946 invoked by uid 48); 29 Sep 2012 18:33:33 -0000 From: "burnus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/54756] [OOP] Should reject CLASS, intent(out) in PURE procedures Date: Sat, 29 Sep 2012 18:33: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: accepts-invalid 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: 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/msg02421.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54756 --- Comment #2 from Tobias Burnus 2012-09-29 18:33:32 UTC --- As follow up - and side note: The following constraint ensures that there is a compile-time error if one tries this with a nonpolymorphic entries. I am not sure whether we currently handle it. (From Fortran 2008:) "C1284 Any procedure referenced in a pure subprogram, including one referenced via a defined operation, defined assignment, defined input/output, or finalization, shall be pure."