Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Volatile coarrays

Nick_M_3
New Contributor I
828 Views

The compiler does not seem to be honouring C560 "The VOLATILE attribute shall not be specified for a coarray that is accessed by use (11.2.2) or host (16.5.1.4) association."  This is the clearest example, but I can't get a message no matter what I do.

MODULE Wombat
    INTEGER :: x


  • END MODULE Wombat
  • PROGRAM Main
        Use Wombat
        VOLATILE :: x
        x = 0
    END PROGRAM Main

     

    0 Kudos
    2 Replies
    Steven_L_Intel1
    Employee
    828 Views

    Thanks, Nick. I have escalated this as issue DPD200359784.

    0 Kudos
    Steven_L_Intel1
    Employee
    828 Views

    Fixed for version 16 (not in the current beta)

    0 Kudos
    Reply