From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12355 invoked by alias); 4 Jan 2015 10:47:09 -0000 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 Received: (qmail 12311 invoked by uid 48); 4 Jan 2015 10:47:04 -0000 From: "janus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/63552] [OOP] Type-bound procedures rejected as actual argument to dummy procedure Date: Sun, 04 Jan 2015 10:47: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-Version: 5.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: janus at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: janus at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-01/txt/msg00152.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63552 --- Comment #9 from janus at gcc dot gnu.org --- (In reply to Ian Harvey from comment #8) > The syntax rule for an /actual-arg/ in 14-007r2 is R1225. None of the child > syntax rules of R1225 permit a type bound procedure, noting that a binding > of a type is not a component of a type. Thanks for pointing that out, Ian. I think none of us was aware of that. I'd even say "too bad", since I posted a somewhat working patch for this feature yesterday ;) https://gcc.gnu.org/ml/fortran/2015-01/msg00012.html Do you have any insight (or suspicion) on why it was not allowed in the standard? Do you think it would be a good idea to implement it in gfortran anyway (as an extension, i.e. rejected with -std=f2008). Would it be feasible to allow it in the upcoming F2015?