// Here is the exact command I used to compile my program for this bug report:
gfortran_temp/irun/bin/gfortran -save-temps test.F90 // Here is the exact output I get at the command line: test.F90: In function 'MAIN__': test.F90:9: internal compiler error: in gfc_conv_string_parameter, at fortran/trans-expr.c:1986 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. // Here is the file test.f95 that was generated with the -save-temps option # 1 "test.F90" # 1 "<built-in>" # 1 "<command line>" # 1 "test.F90" program test implicit none character(len=20) :: var(20) namelist / input / var open(unit=10, file="test_file", form='formatted', status='unknown') read(10, nml=input) end program test Sorry I wrote out test.f95 here here...I didnt see anywhere on bugzilla to attach files, and this is my first time posting a bug. The problem seems to occur when I use namelist input to read an array of strings . If I read 1 string only, there is no error. I encouterred this problem when working on a larger program, which I was able to compile on three separate fortran 90 compilers on many platforms. Thank You Milad Fatenejad -- Summary: Error when reading arrays of strings in namelist input in gfortran Product: gcc Version: 4.1.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: mfatenejad at wisc dot edu CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21224