This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/33055] ignoring iostat= with -fdefault-integer-8
- From: "jvdelisle at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Aug 2007 05:25:46 -0000
- Subject: [Bug libfortran/33055] ignoring iostat= with -fdefault-integer-8
- References: <bug-33055-10391@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from jvdelisle at gcc dot gnu dot org 2007-08-14 05:25 -------
This makes some sense: The following reduced case works fine with
-fdefault-integer-8 with iostat given and gives an error without it. I could
argue that this is OK. I have not dug into the standard on this, but I will.
integer i
logical l
i = 0
inquire (unit=-42, exist=l, iostat=i)
if (l) call abort
end
If this behavior is too weird, we can disable the check for inquire. More
later...
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33055