This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/61632] memory corruption in Fortran RTL when writing formatted data
- From: "kargl at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 27 Jun 2014 16:14:41 +0000
- Subject: [Bug fortran/61632] memory corruption in Fortran RTL when writing formatted data
- Auto-submitted: auto-generated
- References: <bug-61632-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61632
kargl at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |kargl at gcc dot gnu.org
--- Comment #1 from kargl at gcc dot gnu.org ---
(In reply to Arnaud Desitter from comment #0)
> Problem 1: using the following program:
> program p
> call ss()
> call ss()
> end program p
> subroutine ss
> CHARACTER(3), save :: ZTYP(3)
> DATA ZTYP /'XXX','YYY','ZZZ'/
> write(*,600,IOSTAT=iosa) 0.0,ZTYP
> write(*,*) 'iostat=',iosa
If you're going to check for an error, then you should use it.
This should be closed.