public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "Joost.VandeVondele at mat dot ethz.ch" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/61933] New: Inquire on internal units
Date: Mon, 28 Jul 2014 08:13:00 -0000 [thread overview]
Message-ID: <bug-61933-4@http.gcc.gnu.org/bugzilla/> (raw)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61933
Bug ID: 61933
Summary: Inquire on internal units
Product: gcc
Version: 4.10.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: Joost.VandeVondele at mat dot ethz.ch
It would be nice if the the following code
> cat test.f90
LOGICAL :: file_exists
INQUIRE(UNIT=-1,EXIST=file_exists)
WRITE(6,*) file_exists
END
would error out at runtime, since
F2008:
If le-unit-number identies an internal unit (9.6.4.8.3), an error condition
occurs.
F2003:
The value of file-unit-number shall be nonnegative or equal to one of the named
constants INPUT UNIT,
9 OUTPUT UNIT, or ERROR UNIT of the ISO FORTRAN ENV intrinsic module (13.8.2).
The Cray compiler generates an error in this case:
lib-4017 : UNRECOVERABLE library error
The INQUIRE statement must not specify an internal file.
next reply other threads:[~2014-07-28 8:13 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-28 8:13 Joost.VandeVondele at mat dot ethz.ch [this message]
2014-08-28 4:09 ` [Bug fortran/61933] " jvdelisle at gcc dot gnu.org
2015-01-15 3:52 ` jvdelisle at gcc dot gnu.org
2015-01-15 3:58 ` jvdelisle at gcc dot gnu.org
2015-01-15 4:06 ` jvdelisle at gcc dot gnu.org
2015-01-15 4:08 ` jvdelisle at gcc dot gnu.org
2015-01-16 7:04 ` Joost.VandeVondele at mat dot ethz.ch
2015-01-16 15:07 ` jvdelisle at gcc dot gnu.org
2015-01-16 15:22 ` Joost.VandeVondele at mat dot ethz.ch
2015-01-16 15:42 ` jvdelisle at gcc dot gnu.org
2015-01-16 15:52 ` Joost.VandeVondele at mat dot ethz.ch
2015-01-19 5:14 ` jvdelisle at gcc dot gnu.org
2015-01-19 7:25 ` Joost.VandeVondele at mat dot ethz.ch
2015-01-19 13:03 ` [Bug fortran/61933] [5 Regression] " Joost.VandeVondele at mat dot ethz.ch
2015-01-23 2:00 ` jvdelisle at gcc dot gnu.org
2015-01-23 2:01 ` jvdelisle at gcc dot gnu.org
2015-01-23 2:07 ` jvdelisle at gcc dot gnu.org
2015-01-23 2:09 ` jvdelisle at gcc dot gnu.org
2015-01-23 3:39 ` jvdelisle at gcc dot gnu.org
2015-02-01 13:11 ` jvdelisle at gcc dot gnu.org
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bug-61933-4@http.gcc.gnu.org/bugzilla/ \
--to=gcc-bugzilla@gcc.gnu.org \
--cc=gcc-bugs@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).