Incorrect ERROR in FORTRAN code

Here you can discuss the universal Integrated Development Environment for OpenVMS.
Post Reply

Topic author
willemgrooters
Valued Contributor
Posts: 87
Joined: Fri Jul 12, 2019 1:59 pm
Reputation: 0
Location: Netherlands
Status: Offline
Contact:

Incorrect ERROR in FORTRAN code

Post by willemgrooters » Sun Jul 25, 2021 3:29 pm

HP Fortran V8.0-1-104669-48GBT (I know - VSI VMS 8.4 is to be installed..)

Fortran code developed about 20 years ago (Fortran77) contains the following definitions in a module:

Code: Select all

	INTEGER*4, STATIC 		:: Loglun
	CHARACTER*255, STATIC 	:: LogNam
which is an extension on the standard (even in VSI documentation) so valid - and there are no problems to compile this module.

But VMS_IDE signals it incorrectly as an error:

no viable alternative at input 'STATIC'
mismatched input 'STATIC' expecting {PRIVATE, PUBLIC, DIMENSION, POINTER, PARAMETER, ALLOCATABLE, INTENT, OPTIONAL, EXTERNAL, INTRINSIC, SAVE, TARGET}
mismatched input 'STATIC' expecting {PRIVATE, PUBLIC, DIMENSION, POINTER, PARAMETER, ALLOCATABLE, INTENT, OPTIONAL, EXTERNAL, INTRINSIC, SAVE, TARGET}


sergey_vorfolomeev
VSI Expert
Valued Contributor
Posts: 98
Joined: Thu Aug 22, 2019 12:17 am
Reputation: 0
Status: Offline

Re: Incorrect ERROR in FORTRAN code

Post by sergey_vorfolomeev » Mon Jul 26, 2021 2:21 am

thanks. will be fixed in 1.5.45

Post Reply