This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/36459] Wrong interface use for PROCEDURE(<abstr.interface_name)
- From: "janus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Jun 2008 20:15:13 -0000
- Subject: [Bug fortran/36459] Wrong interface use for PROCEDURE(<abstr.interface_name)
- References: <bug-36459-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from janus at gcc dot gnu dot org 2008-06-07 20:15 -------
> The problem is that gfortran assigns the interface
> of the INTRINSIC function "cos" to "f"
You surely mean the intrinsic function DIM ;)
> If one uses "interface" instead of "abstract interface" it works.
No, for me it actually doesn't make a difference.
In particular the following is also rejected:
interface
integer function dim()
end function
end interface
procedure(dim) :: f
print *, dim()
end
Without the PROCEDURE line it works fine.
--
janus at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2008-06-07 20:15:13
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36459