This is the mail archive of the gcc-patches@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]

Re: [Patch, libgfortran] [4.4/4.5 Regression] Endless loop in internal write


Hi Jerry,

I committed the following test case as obvious to 4.5 (and HJ backported
it to 4.4 before I could, thanks):

2009-06-30  Thomas Koenig  <tkoenig@gcc.gnu.org>

        PR fortran/40576
        * gfortran.dg/internal_write_1.f90:  New testcase.

Thanks for the quick fix!

	Thomas
! { dg-do run }
! { dg-shouldfail "End of file" }
program main
  character(len=20) :: line
  integer, dimension(4) :: n
  n = 1
  write(line,'(2I2)') n
end program main
! { dg-output "Fortran runtime error: End of file" }

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