| FIX: Recursive Structure and /Zi Cause Protection ViolationLast reviewed: September 16, 1997Article ID: Q81262 | 
| 5.10   | 5.10
MS-DOS | OS/2
kbtool kbfixlist kbbuglist The information in this article applies to: 
 
 SYMPTOMSThe Microsoft FORTRAN 5.1 compiler may generate a protection violation under OS/2 or hang the machine under MS-DOS during the first pass of the compile if it compiles code that contains a recursive structure definition and an instance of that structure is declared with a RECORD statement. The code must be compiled with the /Zi option to generate the error. 
 RESOLUTIONDo not compile routines with recursive structure definitions with the /Zi option. Use the /Zd option to get line number and global symbol information for that routine. 
 STATUSMicrosoft has confirmed this to be a problem in FORTRAN version 5.1. This problem was corrected in FORTRAN PowerStation, version 1.0. 
 MORE INFORMATIONThe following code reproduces the problem (must be compiled with /Zi): 
 Sample codeC Compile options needed: /Zi 
       structure /struct/
        record /struct/ recur
        integer i
      end structure
      record /struct/ mystruct
      end
 | 
| Additional reference words: 5.10 buglist5.10 fixlist1.00 
 © 1998 Microsoft Corporation. All rights reserved. Terms of Use. |