This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/36459] New: Wrong interface use for PROCEDURE(<abstr.interface_name)
- From: "burnus 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 18:24:21 -0000
- Subject: [Bug fortran/36459] New: Wrong interface use for PROCEDURE(<abstr.interface_name)
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The following valid program is rejected. The problem is that gfortran assigns
the interface of the INTRINSIC function "cos" to "f" and not the one of the
abstract interface. If one uses "interface" instead of "abstract interface" it
works.
abstract interface
function dim()
integer :: dim
end function dim
end interface
procedure(dim) :: f
print *, f()
end
--
Summary: Wrong interface use for PROCEDURE(<abstr.interface_name)
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Keywords: rejects-valid
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: burnus at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36459