FIX: F4201 on Entry with Attribute [VALUE] (106530)



The information in this article applies to:

  • Microsoft FORTRAN PowerStation for MS-DOS 1.0
  • Microsoft FORTRAN PowerStation for MS-DOS 1.0a
  • Microsoft Fortran Powerstation 32 for Windows NT 1.0
  • Microsoft FORTRAN Compiler for MS-DOS 4.0
  • Microsoft FORTRAN Compiler for MS-DOS 4.01
  • Microsoft FORTRAN Compiler for MS-DOS 4.1
  • Microsoft FORTRAN Compiler for MS-DOS 5.0
  • Microsoft FORTRAN Compiler for MS-DOS 5.1
  • Microsoft FORTRAN compiler for OS/2 4.1
  • Microsoft FORTRAN compiler for OS/2 5.0
  • Microsoft FORTRAN compiler for OS/2 5.1

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
				

Modification Type:MajorLast Reviewed:12/2/2003
Keywords:kbbug kberrmsg kbfix kbLangFortran KB106530