[J3] BLOCK DATA and BIND(C) question

Steven G. Kargl kargl at uw.edu
Tue Feb 1 19:07:46 UTC 2022


Are these code snippets equivalent? 

BLOCK DATA
   BIND(C) :: A
END BLOCK DATA

BLOCK DATA
   REAL :: A
   BIND(C) :: A
END BLOCK DATA

BLOCK DATA
   REAL, BIND(C) :: A
END BLOCK DATA


If yes, do C1415 and C1416 conflict?

C1415 (R1420) A block-data specification-part shall contain
      only derived-type definitions and ..., BIND, ..., and
      type declaration statements.

C1416 (R1420) A type declaration statement in a block-data
      specification-part shall not contain ALLOCATABLE, EXTERNAL,
      or BIND attribute specifiers.

In fact, does C1415 conflict with C819?

C819 A variable with the BIND attribute shall be declared in
     the specification part of a module.

-- 
Steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3950 bytes
Desc: not available
URL: <https://mailman.j3-fortran.org/pipermail/j3/attachments/20220201/1247bd23/attachment.bin>


More information about the J3 mailing list