Bug#322912: gfortran fails to compile a routine
Package: gfortran
Version: 4.0.1-3
Severity: important
*** Please type your report below this line ***
gfortran fails to compile the following code (which happens to occur
quite frequently in NAG routines for output):
      subroutine test(cval, ival, rval)
      implicit none
      character(2) :: cval
      real(8)      :: rval
      integer      :: ival
      character(80), dimension(4) :: rec
      cval = 'MI'
      ival = 1
      write (REC,FMT=99999) cval, ival
      return
99999 FORMAT (//' ',A2,' iteration',I5,/' =================')
      end
lion:[~]> gfortran -w -pipe -g -c -o test.o test.f
test.f: In function 'test':
test.f:9: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
For Debian GNU/Linux specific bug reporting instructions,
see <URL:file:///usr/share/doc/gcc-4.0/README.Bugs>.
lion:[~]>
I have reported that bug already to the gcc team,
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23368
and according to some comments on that bug, it seems that later versions 
of gfortran e.g. 4.0.2 compile that code without any trouble.
So I would like to ask for a later version of that compiler.
Kind regards,
Martin.
-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (990, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12.4
Locale: LANG=en_GB.UTF-8, LC_CTYPE=de_DE@euro (charmap=ISO-8859-15)
Versions of packages gfortran depends on:
ii  cpp                           4:4.0.1-3  The GNU C preprocessor (cpp)
ii  gcc                           4:4.0.1-3  The GNU C compiler
ii  gfortran-4.0                  4.0.1-2    The GNU Fortran 95 compiler
gfortran recommends no packages.
-- no debconf information
Reply to: