This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/61632] Memory corruption on error when writing formatted data
- From: "jvdelisle at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 15 Jul 2014 02:48:18 +0000
- Subject: [Bug fortran/61632] Memory corruption on error 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
--- Comment #14 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
(In reply to Dominique d'Humieres from comment #10)
--- snip ---
>
> Is the printing of 'YYY' supposed to happen?
Its sort of like Steve said earlier. The coder is choosing to ignore an error
condition so anything gfortran does is valid. In this case the output got
wriiten to buffer before the error occurred. You are bypassing all of the
normal error handling when you do this. The buffer got flushed.
Its not worth the time to change any of it really.
The program should exit, its invalid.