This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/32710] New: ICE: namelist and subroutine with the same name
- From: "jaydub66 at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Jul 2007 21:49:50 -0000
- Subject: [Bug fortran/32710] New: ICE: namelist and subroutine with the same name
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
program samename
contains
subroutine readInput
implicit none
integer:: a,b,c
NAMELIST /name/ a,b,c
read(5,nml=name)
end subroutine readInput
subroutine name()
end subroutine name
end program
this code fails with the following error (gfortran 4.3 and 4.1.3):
samename.f90: In function ?readinput?:
samename.f90:6: internal compiler error: Segmentation fault
for gfortran 4.2 the error message is:
samename.f90: In function ?readinput?:
samename.f90:6: internal compiler error: in gfc_typenode_for_spec, at
fortran/trans-types.c:693
just defining the namelist works fine, only the read statement triggers the ICE
--
Summary: ICE: namelist and subroutine with the same name
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jaydub66 at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32710