Access via use

From: Andy (andy_at_ideafix.litec.csic.es)
Date: 10/22/03


Date: Wed, 22 Oct 2003 20:02:39 +0200

Another compiler dispute. Should a_t be accessible in program fred?

module a_m
   public a_t
   type a_t
     integer :: i
   end type
end module

module b_m
   use a_m
   private
   type b_t
    integer :: j
   end type
end module

program fred
   use b_m
   type(a_t) :: a ! Is this public in b_m?
   a%i = 2
end program

Can I look up this sort of thing somewhere on the web?

In general, do the compilers vendors agree on what Fortran 95 is? or
does one in practice have to iteratively adapt to a common subset in the
manner of C++?