This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/47613] New: [4.6 Regression] namelist read with -static


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]