This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

new gfortran bug?



Hi,


latest linux/i386 gfortran binary from wiki ices compiling the code below

!---------------------------
module mod
  implicit none
  type a_t
     type(a_t), pointer :: n
  end type a_t
end module mod

subroutine a
contains
  subroutine b()
    use mod
    type(a_t) :: v
  end subroutine b
end subroutine a
!-----------------------------

gfortran --v -c a.f90
Using built-in specs.
Target: i386-linux
Configured with: ../gcc/configure --prefix=/cosmic/coudert/tmp/gfortran-20060919/irun --enable-languages=c,fortran --host=i386-linux --with-gmp=/cosmic/coudert/tmp/gfortran-20060919/gfortran_libs
Thread model: posix
gcc version 4.2.0 20060904 (experimental)
/home/wrk/jpr/irun/bin/../libexec/gcc/i386-linux/4.2.0/f951 a.f90 -quiet -dumpbase a.f90 -mtune=i386 -auxbase a -version -I /home/wrk/jpr/irun/bin/../lib/gcc/i386-linux/4.2.0/finclude -o /tmp/ccN8cksm.s
GNU F95 version 4.2.0 20060904 (experimental) (i386-linux)
compiled by GNU C version 4.2.0 20060904 (experimental).
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
gfortran: Internal error: Segmentation fault (program f951)
Please submit a full bug report.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.



If i move the "use mod" from the contained subroutine up to containing subroutine it seems to work. Is this a known bug?

Regards, Juha


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]