public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/65684] New: Wrong error message when writing to a string
@ 2015-04-07 11:27 a.vogt at fulguritus dot com
  2015-04-07 11:29 ` [Bug fortran/65684] " a.vogt at fulguritus dot com
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: a.vogt at fulguritus dot com @ 2015-04-07 11:27 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65684

            Bug ID: 65684
           Summary: Wrong error message when writing to a string
           Product: gcc
           Version: 4.9.3
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: a.vogt at fulguritus dot com

gfortran gives the wrong output when writing to a string that is too short: 

Compiling and running this snippet

program test
  implicit none
  character(2) :: str

  write(str,*) 100

  print *, str
end program


results in 
> At line 5 of file test.F90
> Fortran runtime error: End of record

ifort, on the other hand, gives the correct error message: 

> forrtl: severe (66): output statement overflows record, unit -5, file Internal List-Directed Write

Could the gfortran error message be adjusted?


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

end of thread, other threads:[~2015-04-21 18:33 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-07 11:27 [Bug fortran/65684] New: Wrong error message when writing to a string a.vogt at fulguritus dot com
2015-04-07 11:29 ` [Bug fortran/65684] " a.vogt at fulguritus dot com
2015-04-07 16:24 ` kargl at gcc dot gnu.org
2015-04-07 16:47 ` a.vogt at fulguritus dot com
2015-04-07 19:07 ` jvdelisle at gcc dot gnu.org
2015-04-08  9:02 ` dominiq at lps dot ens.fr
2015-04-08  9:23 ` a.vogt at fulguritus dot com
2015-04-08  9:46 ` dominiq at lps dot ens.fr
2015-04-08 10:21 ` a.vogt at fulguritus dot com
2015-04-08 18:38 ` a.vogt at fulguritus dot com
2015-04-09 12:24 ` jvdelisle at gcc dot gnu.org
2015-04-21 18:33 ` jvdelisle at gcc dot gnu.org

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).