This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/63552] [OOP] Type-bound procedures rejected as actual argument to dummy procedure
- From: "burnus at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 03 Jan 2015 22:06:39 +0000
- Subject: [Bug fortran/63552] [OOP] Type-bound procedures rejected as actual argument to dummy procedure
- Auto-submitted: auto-generated
- References: <bug-63552-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63552
--- Comment #7 from Tobias Burnus <burnus at gcc dot gnu.org> ---
(In reply to Ian Harvey from comment #6)
> Note that using a type bound procedure (versus a procedure component) as an
> actual argument is an extension to Fortran 2008.
Can you pinpoint this in the standard? At a glance, it seems to be supported:
R1223 procedure-designator is procedure-name
or proc-component-ref
or data-ref % binding-name
"12.2.2.3 Dummy procedures
A dummy argument that is specified to be a procedure or appears as the
procedure designator in a procedure reference is a dummy procedure. A dummy
procedure with the POINTER attribute is a dummy procedure pointer."
Quotes from the Fortran 2015 draft J3/14-007r2.