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.