This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/47613] New: [4.6 Regression] namelist read with -static
- From: "janus at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 4 Feb 2011 21:05:47 +0000
- Subject: [Bug fortran/47613] New: [4.6 Regression] namelist read with -static
- Auto-submitted: auto-generated
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