f95 boz constant error

f95 boz constant error

I have upgraded a f77 project to use the f95 standards checking and i get this error:

C:TempFORTRAN CRYPTOSECURITY.FD(42) : Warning: Fortran 95 does not allow boz constant in this context. [Z'11A2']
INTEGER(4), PARAMETER :: TEST_PARAM = '11A2'Z ! Security code

On this line of code:
INTEGER(4), PARAMETER :: TEST_PARAM = '11A2'Z ! Security code

is there a new format in f95 to do this same concept? I am just trying to cast a hex value to decimal... please help!


4 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

No - at present in the standard, binary/octal/hex constants are allowed only in DATA statements.


Retired 12/31/2016

Steve, I'm getting the same error message when using:

REAL(4) R1, R2
DATA R1/Z'00000000'/, R2/Z'00000100'/

This occurs with either Fortran 90 or 95 Standards Checking (Settings, Fortran, Compilation Diagnostics).
I'm running CVF 6.6B. Comments?


Interesting. I am out of the office this week, but will look into this when I return.


Retired 12/31/2016

Leave a Comment

Please sign in to add a comment. Not a member? Join today