FIX: Inline Comment in Continued FORMAT Causes F4989

ID: Q77556

5.10 1.00 1.00a | 5.10 | 1.00

MS-DOS          | OS/2 | WINDOWS NT

The information in this article applies to:

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 reference words: 5.10 1.00 1.00a KBCategory: KBSubcategory: FLIss
Keywords          : kberrmsg kbLangFortran 
Version           : 5.10 1.00 1.00a | 5.10 | 1.00
Platform          : MS-DOS NT OS/2 WINDOWS

Last Reviewed: May 23, 1998