You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
module m1
type:: base
integer :: id
contains
procedure, nopass :: print1 => printbase
end type
type, extends(base), abstract :: child
contains
procedure(printif), deferred, nopass :: print1
end type
interface
subroutine printif()
end subroutine
end interface
contains
subroutine printbase()
print *,"hello"
end subroutine
end module
print1 in type child has the DEFERRED attribute but its overridden print1 in type base does not.
This usage should be diagnosed.
The text was updated successfully, but these errors were encountered:
Consider the following code:
print1
in typechild
has theDEFERRED
attribute but its overriddenprint1
in typebase
does not.This usage should be diagnosed.
The text was updated successfully, but these errors were encountered: