BUG: Compiler Syntax Error If Edit Descriptors Contain SpacesLast reviewed: March 18, 1996Article ID: Q148605 |
The information in this article applies to:
SYMPTOMSCompiling a free form source file having multiple-character edit descriptors with embedded spaces in a FORMAT statement results in this error:
FOR3852: syntax error detected CAUSEThe compiler treats files having the extension .f90 as free form source files. In a free form source file, spaces are normally significant except in FORMAT statements.
RESOLUTIONDo one of the following:
STATUSMicrosoft has confirmed this to be a bug in the Microsoft 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.
MORE INFORMATION
Sample Code to Illustrate and Work Around Problem! Use Fortran 90 source extension: .F90 ! Workaround #3, use the /4Nf compiler switch ! !MS$NOFREEFORM ! Workaround #4, uncomment this metacommand
integer :: i = 123 write(*, 100) i, i, i 100 format(1x, i5, sp, i5, ss, i5) ! This compiles write(*, 200) i, i, i200 format(1x, i5, s p, i5, s s, i5) ! This doesn't compile end |
Additional reference words: 4.00
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |