[Bug fortran/89039] Logical read from stream file that is neither 0 nor 1

albandil at atlas dot cz gcc-bugzilla@gcc.gnu.org
Thu Jan 24 15:42:00 GMT 2019


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

--- Comment #2 from Jakub Benda <albandil at atlas dot cz> ---
The quotation from the manual

> Any other integer value results in undefined behavior.

is very explicit. Also, I see that using

    ifort -fpscomp logicals

will make ifort compatible with the rest of the world in this regard, so I
agree that the proper flag for this report is INVALID.

Thanks!


More information about the Gcc-bugs mailing list