$ gfortran bug.f90 bug.f90:8: internal compiler error: Segmentation fault
$ gfortran -v Using built-in specs. Target: i686-pc-linux-gnu Configured with: ../gcc4/configure --enable-languages=c,c++,f95 Thread model: posix gcc version 4.1.0 20050609 (experimental) (This is this morning's CVS snapshot) Hmf. I don't see how to attach the "bug.f90" so I will place it in-line below. It's short. If I split into module and main program and compile separately, boom.f90 ICE's at line zero. Suspect a bad "modboom.mod" file. ------------------------------------------- module modboom implicit none ! can comment out private ! comment out, lose the bug public:: dummysub ! comment out, lose the bug type:: intwrapper ! a straight integer won't do integer n end type intwrapper contains subroutine dummysub(size, arg_array) type(intwrapper) :: size real, dimension(size%n) :: arg_array real :: local_array(4) ! comment out, lose the bug end subroutine dummysub end module modboom program boom use modboom ! bad .mod file ? print *, 'hey, we made it!' end program boom ------------------------------------------- -- Summary: Bad .mod file, ICE upon USE Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P2 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: Pierre dot Asselin at seagate dot com CC: gcc-bugs at gcc dot gnu dot org GCC target triplet: Huh ? do you mean "i686-pc-linux-gnu" ? http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21986