FIX: F4201 on Entry with Attribute [VALUE]

Last reviewed: September 16, 1997
Article ID: Q106530
1.00 1.00a 4.00 4.01 4.10 5.00 5.10 | 4.10 5.00 5.10 | 1.00
MS-DOS                              | OS/2           | WINDOWS NT
kbprg kbfixlist kberrmsg

The information in this article applies to:

  • Microsoft FORTRAN PowerStation for MS-DOS versions 1.0 and 1.0a
  • Microsoft FORTRAN PowerStation 32 version 1.0
  • Microsoft FORTRAN for MS-DOS, versions 4.0, 4.01, 4.1, 5.0 and 5.1
  • Microsoft FORTRAN for OS/2, versions 4.1, 5.0, and 5.1

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 reference words: 1.00 1.00a 5.10
KBCategory: kbprg kbbuglist kbfixlist kberrmsg
KBSubcategory: FORTLngIss
Keywords : FORTLngIss kbbuglist kberrmsg kbfixlist kbprg
Version : 1.00 1.00a 4.00 4.01 4.10 5.00 5
Platform : MS-DOS NT OS/2 WINDOWS
Solution Type : kbfix


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: September 16, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.