Knowledge Base

FIX: F4201 on Entry with Attribute [VALUE]

Article ID: 106530

Article Last Modified on 12/2/2003


APPLIES TO


This article was previously published under Q106530

SYMPTOMS

When a subroutine or an external function with entry points has an argument passed by value, the compiler generates the following warning message for every ENTRY statement in the code:
warning F4201: ENTRY : formal argument : attribute VALUE : mismatch

RESOLUTION

This warning message can be ignored, provided that there is no other problem with the ENTRY statements.

STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. This problem was fixed in FORTRAN PowerStation 32, version 4.0.

MORE INFORMATION

The following sample code produces the F4201 warning message on compilation, but will properly execute to yield correct results:

15
35
63

Sample Code

C No compiler options required

      subroutine x(i)
      integer i[value]
      print *, i*3

      entry y(i)
      print *, i*7
      end

      program test
      integer j
      j = 5
      call x(j)
      j = 9
      call y(j)

      end
				

Additional query words: 1.00 1.00a 5.10

Keywords: kberrmsg kbbug kbfix kblangfortran KB106530