public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/61933] New: Inquire on internal units
@ 2014-07-28  8:13 Joost.VandeVondele at mat dot ethz.ch
  2014-08-28  4:09 ` [Bug fortran/61933] " jvdelisle at gcc dot gnu.org
                   ` (18 more replies)
  0 siblings, 19 replies; 20+ messages in thread
From: Joost.VandeVondele at mat dot ethz.ch @ 2014-07-28  8:13 UTC (permalink / raw)
  To: gcc-bugs

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.


^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2015-02-01 13:11 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-28  8:13 [Bug fortran/61933] New: Inquire on internal units Joost.VandeVondele at mat dot ethz.ch
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

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).