gfortran compiler behavior with module code

Steve Kargl sgk@troutmask.apl.washington.edu
Fri Oct 28 00:29:00 GMT 2005


On Thu, Oct 27, 2005 at 05:04:13PM -0700, Uttam Pawar wrote:
> Hi,
> 
> Following code compiles fine with gfortran (gcc version 4.1.0 20051018)
> 
> $ cat module_test.f90
> MODULE module_name
>    TYPE POINT
>         PRIVATE
>             REAL :: X, Y
>     END TYPE POINT
> END MODULE module_name
> 

  USE module_name  ! Is this missing, intentionally?

> TYPE TRIANGLE
>      TYPE (POINT) :: A, B
> END TYPE TRIANGLE
> 
> END

Compiles fine with the USE statement.

-- 
Steve



More information about the Fortran mailing list