[Bug fortran/42418] New: PROCEDURE: Rejects interfface which is both specific and generic procedure
burnus at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Thu Dec 17 22:51:00 GMT 2009
(found when going through the link of PR
gfortran rejects the following program where "gen" is both a generic and a
specific procedure name as interface argument to PROCEDURE. I cannot find a
reason why it should be invalid and thus I think it is valid.
procedure(gen) :: f
1
Error: Interface 'gen' at (1) may not be generic
module mod
interface gen
module procedure gen
end interface gen
contains
pure subroutine gen(a)
integer,intent(in) :: a
end subroutine gen
subroutine test(f)
procedure(gen) :: f
end subroutine test
end module mod
--
Summary: PROCEDURE: Rejects interfface which is both specific and
generic procedure
Product: gcc
Version: 4.5.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=42418
More information about the Gcc-bugs
mailing list