Page 1 of 1

Incorrect ERROR in FORTRAN code

Posted: Sun Jul 25, 2021 3:29 pm
by willemgrooters
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}

Re: Incorrect ERROR in FORTRAN code

Posted: Mon Jul 26, 2021 2:21 am
by sergey_vorfolomeev
thanks. will be fixed in 1.5.45