Article ID: 109876
Article Last Modified on 10/17/2003
APPLIES TO
- Microsoft FORTRAN PowerStation 32
- Microsoft FORTRAN PowerStation 32
This article was previously published under Q109876
SYMPTOMS
An attempt to compile a program containing a FORMAT specifier that is more than one line long and that has an in-line comment on a line other than the last, causes the following warning:
In-line comments start with an exclamation point. If the FORMAT statement is referenced during program execution, it will cause the program to terminate with exit code 1. The following run-time error might be generated:
RESOLUTION
This problem can be corrected by removing the embedded comment.
STATUS
Microsoft has confirmed this to be a problem in the products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
Sample Code
c Compile options needed: have no effect c The following program reproduces the problem: 10 format('This shows that an embedded ', ! Here is the comment & 'comment causes a problem.') write(*,10) end
Additional query words: 1.00 4.00
Keywords: kbcompiler KB109876