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/29563] New: Internal read loses data.


gcc version 4.3.0 20061023 (experimental)
Mandriva 2006.0

The program

   program gfbread
     character(len=256), dimension(3) :: block_data = (/'1 2 3','4 5 6','7 8
9'/)
     real(kind=8), dimension(3,3) :: tmp_box
     read(block_data,*,iostat=iostat)((tmp_box(i,j),j=1,3),i=1,3)
     write(*,'(3F10.5)') ((tmp_box(i,j),j=1,3),i=1,3)
   end program gfbread

prints the output 

   1.00000   2.00000   3.00000
   4.00000   5.00000   6.00000
   7.00000   8.00000   0.00000

instead of the correct

   1.00000   2.00000   3.00000
   4.00000   5.00000   6.00000
   7.00000   8.00000   9.00000


-- 
           Summary: Internal read loses data.
           Product: gcc
           Version: tree-ssa
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: refson dot temp at ntlworld dot com
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29563


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