This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gfortran compiler behavior with module code


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]