This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: gfortran compiler behavior with module code
- From: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- To: Uttam Pawar <uttamp at us dot ibm dot com>
- Cc: fortran at gcc dot gnu dot org
- Date: Thu, 27 Oct 2005 17:10:31 -0700
- Subject: Re: gfortran compiler behavior with module code
- References: <1130457854.10349.94.camel@linux.site>
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