gfxgfx
 
Please login or register.

Login with username, password and session length
 
gfx gfx
gfx
1617 Posts in 535 Topics by 779 Members - Latest Member: rhoronjeff@comcast.net November 27, 2022, 07:36:13 PM
*
gfx* Home | Help | Search | Login | Register | gfx
gfx
Absoft User Forum  |  Support  |  General  |  .AND./IAND BUG?
gfx
gfxgfx
 

Author Topic: .AND./IAND BUG?  (Read 3885 times)

jonnygto

  • Newbie
  • *
  • Posts: 16
.AND./IAND BUG?
« on: August 07, 2012, 01:26:58 PM »
The operation  KERR.AND.O'17'
where KERR is declared as an INTEGER, gives the compiler error message:
"The arguments to this bitwise intrinsic or operator must be the same size".

According to the F77 documentation, INTEGER's and integer constants both take 4 bytes,
but I have to declare KERR as INTEGER*8 in order to compile.

forumadmin

  • Administrator
  • Sr. Member
  • *****
  • Posts: 333
Re: .AND./IAND BUG?
« Reply #1 on: August 08, 2012, 09:16:37 AM »
The Fortran standard limits the context where BOZ constants can used to:

C410 (R411) A boz-literal-constant shall appear only as a data-stmt-constant in a DATA statement, as the actual argument associated with the dummy argument A of the numeric intrinsic functions DBLE, REAL or INT, or as the actual argument associated with the X or Y dummy argument of the intrinsic function CMPLX.

In your context, the INT function with a KIND optional argument will wort:

KERR.AND.int(O'17',4)

jonnygto

  • Newbie
  • *
  • Posts: 16
Re: .AND./IAND BUG?
« Reply #2 on: August 15, 2012, 07:25:07 PM »
Thank you for the information. I'm working with legacy Vax F77 code in which this was legal. The restriction is a new one on me.

Absoft User Forum  |  Support  |  General  |  .AND./IAND BUG?
 

gfxgfx
gfx gfx
Powered by MySQL Powered by PHP Valid XHTML 1.0! Valid CSS!