public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/42422]  New: Error in Fortran list directed input
@ 2009-12-18  2:54 palmtag5 at yahoo dot com
  2009-12-18  2:55 ` [Bug fortran/42422] " palmtag5 at yahoo dot com
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: palmtag5 at yahoo dot com @ 2009-12-18  2:54 UTC (permalink / raw)
  To: gcc-bugs

An error occurs when arrays are read from the input using list-directed 
input that uses a repeat(*) before a record terminator (/).
The repeat is ignored.

For example, reading an integer array dimensioned 10
     integer :: imatrx(10)
    ...
     read (*,*) imatrx

will give the wrong results when the input has a repeat before the record
terminator

     1 2 3 4*5 /

Will read in the values as "1 2 3 5 x x x x x x"
instead of "1 2 3 5 5 5 5 x x x"


-- 
           Summary: Error in Fortran list directed input
           Product: gcc
           Version: 4.3.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: palmtag5 at yahoo dot com
 GCC build triplet: 4.3.2
  GCC host triplet: 4.3.2
GCC target triplet: 4.3.2


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


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2009-12-22 17:42 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-12-18  2:54 [Bug fortran/42422] New: Error in Fortran list directed input palmtag5 at yahoo dot com
2009-12-18  2:55 ` [Bug fortran/42422] " palmtag5 at yahoo dot com
2009-12-18 10:07 ` burnus at gcc dot gnu dot org
2009-12-20 20:17 ` tkoenig at gcc dot gnu dot org
2009-12-20 20:33 ` kargl at gcc dot gnu dot org
2009-12-20 20:57 ` jvdelisle at gcc dot gnu dot org
2009-12-21 23:14 ` tkoenig at gcc dot gnu dot org
2009-12-22 17:42 ` hjl dot tools at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).