[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference turris::fortran

Title:Digital Fortran
Notice:Read notes 1.* for important information
Moderator:QUARK::LIONEL
Created:Thu Jun 01 1995
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:1333
Total number of notes:6734

1309.0. "Visual Fortran - unable to call a function" by CSC32::D_SANFORD () Wed May 21 1997 17:10

    Digital Visual Fortran V5.0

    Customer is porting OpenVMS Fortran code to MS using Visual Fortran
    and uses the following:


	INTEGER func

	CALL func()
	END

	INTEGER func()
	func=1
	END

    With Visual Fortran this fails to compile with:

      file.for(4) : Error: This subroutine has already been used in a 
      type statement.

    This fails on the "CALL func()" statement.  I told him to call it 
    as a function, but he does not want to change his VAX code.

    Any suggestions?

    Regards, Drew Sanford
    C970521-3537
T.RTitleUserPersonal
Name
DateLines
1309.1QUARK::LIONELFree advice is worth every centWed May 21 1997 17:275
Sorry - this is something which we enforce in all our Fortran 90 compilers,
including the one on OpenVMS.  We let people get away with it in F77, but
it was technically against the standard there too.

				Steve