FIX: FORTRAN Err Msg: F2348: Already Declared SAVE (48624)



The information in this article applies to:

  • Microsoft FORTRAN Compiler for MS-DOS 5.0
  • Microsoft FORTRAN compiler for OS/2 5.0

This article was previously published under Q48624

SYMPTOMS

In Microsoft FORTRAN version 5.0, when attempting to use the SAVE statement on any item more than twice in the same source file, the following error message may be generated:
F2348: a: already declared SAVE

STATUS

This problem has been corrected with an application note, which is available from Microsoft Product Support Services. The application note is titled "FORTRAN 5.0 F1.EXE and F1L.EXE Structure Patch."

This file has been removed from the Software Library but can be requested by calling Microsoft Product Support Services. This problem was corrected with Microsoft FORTRAN version 5.1.

MORE INFORMATION

Sample Code #1

c The following example program generates the F2348 error
c when compiled with Microsoft FORTRAN version 5.0

         subroutine a
         common /name/ d
         save /name/ 
         end

         subroutine b
         common /name/ d
         save /name/ 
         end

         subroutine c
         common /name/ d
         save /name/ 
         end
				

Modification Type:MajorLast Reviewed:10/23/2003
Keywords:kbbug kbfix KB48624