FIX: Inline Comment in Continued FORMAT Causes F4989 (77556)



The information in this article applies to:

  • Microsoft FORTRAN Compiler for MS-DOS 5.1
  • Microsoft FORTRAN compiler for OS/2 5.1
  • 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

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
				

Modification Type:MajorLast Reviewed:12/1/2003
Keywords:kberrmsg kbLangFortran KB77556