Is this a bug? Should the private declaration in the header of the module def, prevent the main program from finding the definition of the type test_t?
module def
implicit none
private
type test_t
integer x
end type test_t
end module def
program main
use def
implicit none
type(test_t) :: a
a%x = 1
print *,a%x
end program main
Or an explicit private applied to the type definition:-
module def
implicit none
private
type, private :: test_t
integer x
end type test_t
end module def
program main
use def
implicit none
type(test_t) :: a
a%x = 1
print *,a%x
end program main
In both of the above cases the private declaration(s) have no impact. FTN95 seems to differ from other compiliers on this one.
Ken