Microsoft KB Archive/77556

= FIX: Inline Comment in Continued FORMAT Causes F4989 =

Article ID: 77556

Article Last Modified on 12/1/2003

-

APPLIES TO


 * Microsoft FORTRAN Compiler 5.1
 * Microsoft FORTRAN Compiler 5.1
 * Microsoft FORTRAN PowerStation 1.0 Standard Edition
 * Microsoft Fortran PowerStation 1.0a for MS-DOS
 * Microsoft FORTRAN PowerStation 32

-



This article was previously published under Q77556



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 KB77556

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.