- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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!
Jeff
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!
Jeff
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
No - at present in the standard, binary/octal/hex constants are allowed only in DATA statements.
Steve
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
Greg
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?
Greg
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Interesting. I am out of the office this week, but will look into this when I return.
Steve
Steve

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page