Knowledge Base

FIX: Strange Character in Warning for Illegal Edit List

Article ID: 108365

Article Last Modified on 10/17/2003


APPLIES TO


This article was previously published under Q108365

SYMPTOMS

An attempt to compile a program that contains a FORMAT statement with the illegal edit list may fail with the following warning
warning F4989: 'X' : unexpected character in format
where 'X' is an extended ASCII character or no character at all. The character displayed should be a character from the edit list.

RESOLUTION

Correcting the edit list in the format statement eliminates the warning message.

STATUS

Microsoft has confirmed this to be a problem in Microsoft FORTRAN PowerStation 32 for Windows NT, version 1.0 and for MS-DOS, versions 1.0 and 1.0a. This problem was fixed in FORTRAN PowerStation 32 version 4.0.

MORE INFORMATION

The following program illustrates the problem:

Sample Code

C Compile options needed: none
301   format(O6) ! O not valid here
      end
				

Additional query words: 1.00 1.00a

Keywords: kbbug kbfix kbcompiler KB108365