[Bug fortran/68534] New: No error on mismatch in number of arguments between submodule and module interface
pault at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Nov 25 09:16:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68534
Bug ID: 68534
Summary: No error on mismatch in number of arguments between
submodule and module interface
Product: gcc
Version: 6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: pault at gcc dot gnu.org
Target Milestone: ---
As reported by FortranFan on clf, the following does not produce an error:
module m
implicit none
interface
module subroutine foo()
end subroutine foo
end interface
end module m
submodule(m) sm
contains
module subroutine foo(i)
integer, intent(inout) :: i
i = 42
return
end subroutine foo
end submodule sm
Paul
More information about the Gcc-bugs
mailing list