g77 write segfaults (was fmt.c)

Robert Williams bob@bob.usuf2.usuhs.mil
Mon Mar 30 18:58:00 GMT 1998


In reference to my earlier report about
a segfault in fmt.c, here is a simple fortran
program that illustrates the problem.
Can anyone help with this one?

      program bomb
      character*10 Name
      Name = 'X'
C       print *,Name(1:1)  (prints an interminable string of characters)

        Write(6,1000) Name(1:1)
C       Write(6,1000) Name  (also bombs)
 1000   Format(' Name = ',A)
      stop
      end

--
Bob Williams, http://bob.usuf2.usuhs.mil/






More information about the Gcc-bugs mailing list