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, 2005-10-27 at 17:10 -0700, Steve Kargl wrote:
> 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?

Yes. Just trying to do more module related testing. What should happen
if we remove 'USE module_name'?

> 
> > TYPE TRIANGLE
> >      TYPE (POINT) :: A, B
> > END TYPE TRIANGLE
> > 
> > END
> 
> Compiles fine with the USE statement.
> 

I know it compiles fine with gfortran. Just wanted to know if we are out
of sync with lahey checker as it is often used by many people to verify
the test case.


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