Registrations are now open. Join us today!
There is still a lot of work to do on the wiki yet! More information about editing can be found here.
Already have an account?

Microsoft KB Archive/106530

From BetaArchive Wiki

Article ID: 106530

Article Last Modified on 12/2/2003



APPLIES TO

  • Microsoft FORTRAN PowerStation 1.0 Standard Edition
  • Microsoft Fortran PowerStation 1.0a for MS-DOS
  • Microsoft FORTRAN PowerStation 32
  • Microsoft FORTRAN Compiler 4.0
  • Microsoft FORTRAN Compiler 4.01
  • Microsoft FORTRAN Compiler 4.1
  • Microsoft FORTRAN Compiler 5.0
  • Microsoft FORTRAN Compiler 5.1
  • Microsoft FORTRAN Compiler 4.1
  • Microsoft FORTRAN Compiler 5.0
  • Microsoft FORTRAN Compiler 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
                


Additional query words: 1.00 1.00a 5.10

Keywords: kberrmsg kbbug kbfix kblangfortran KB106530