http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47613
Summary: [4.6 Regression] namelist read with -static Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unassig...@gcc.gnu.org ReportedBy: ja...@gcc.gnu.org Consider the following test case: program test implicit none integer :: numEnsembles,ios NAMELIST /input/ numEnsembles read (20, nml=input, IOSTAT=ios) print *,ios, is_iostat_end(ios) end program This attempts to read a namelist from an empty file. When compiled with 4.5 or trunk, the output is -1 T When compiling with "gfortran-4.6 -static", the output is: 5010 F