FIX: Inline Comment in Continued FORMAT Causes F4989

ID: Q77556


The information in this article applies to:
  • Microsoft FORTRAN for MS-DOS, version 5.1
  • Microsoft FORTRAN for OS/2, version 5.1
  • Microsoft FORTRAN PowerStation for MS-DOS, versions 1.0, 1.0a
  • Microsoft Fortran Powerstation 32 for Windows NT, version 1.0


SYMPTOMS

Compiling code that contains a FORMAT specifier that continues for more than one line and which has an in-line comment delimited by the exclamation point on or before the continued line causes one of the following:

warning F4989: '!' : unexpected character in format
-or-
warning F4989: 'c' : unexpected character in format
-or-
warning F4989: 'W' : unexpected character in format
-or-
warning F4989: 'k' : unexpected character in format
-or-
warning F4989: '[' : unexpected character in format


STATUS

Microsoft has confirmed this to be a problem in the products listed above. This problem was corrected in Microsoft FORTRAN PowerStation 32, version 4.0.


MORE INFORMATION

The following code reproduces the problem:

Sample code


10    format('test of comments in continued formats',  ! Comment
     &       F12.5)
      end 

Additional query words: 5.10 1.00 1.00a

Keywords : kberrmsg kbLangFortran
Version : :1.0,1.0a,5.1
Platform : MS-DOS NT OS/2 WINDOWS
Issue type :


Last Reviewed: November 1, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.