bug or wrong in my program?

Paul Thomas paulthomas2@wanadoo.fr
Sun Jan 16 10:22:00 GMT 2005



Hej Gunnar!

This is an error in your fortran.  The only attribute of an object accesed 
by a USE statement that can be re-specified is PUBLIC or PRIVATE and then 
only in a MODULE.  That is to say in plain speak, that Area is already 
defined to be REAL through the USE statement.  The REAL is taken to be an 
attempt to redefine Area, even if the types are consistent.

Digital Fortran gives:

D:\gfortran\mail_list.f90(18) : Error: This local name made accessible by a 
USE stmt appears in a specification stmt that respecifies the attributes. 
[AREA]
 REAL :: a,b,c,Area  ! <<<<<<<<<-----------HERE!!!!!
---------------^

Paul Thomas 




More information about the Fortran mailing list