[Bug fortran/47613] New: [4.6 Regression] namelist read with -static
janus at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Feb 4 21:05:00 GMT 2011
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: unassigned@gcc.gnu.org
ReportedBy: janus@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
More information about the Gcc-bugs
mailing list