This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/24576] Fortran I/O to same unit number in main program and in a shared library
- From: "fxcoudert at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Oct 2005 12:55:40 -0000
- Subject: [Bug libfortran/24576] Fortran I/O to same unit number in main program and in a shared library
- References: <bug-24576-11486@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #7 from fxcoudert at gcc dot gnu dot org 2005-10-29 12:55 -------
Confirmed and marked as an enhancement.
The standard clearly forbids the behaviour the reporter would like (and that
some commercial compilers exhibit), so it's not a bug. However, it could be an
interesting feature, if someone has time to implement it.
The code proposed in comment #6 is indeed the right way to use unit numbers in
a very general way to avoid clashes (well, there is a race condition, but i'm
not sure how you could avoid it).
--
fxcoudert at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |fxcoudert at gcc dot gnu dot
| |org
Severity|normal |enhancement
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
GCC build triplet|x86_64-unknown-linux-gnu |
GCC host triplet|x86_64-unknown-linux-gnu |
GCC target triplet|x86_64-unknown-linux-gnu |
Last reconfirmed|0000-00-00 00:00:00 |2005-10-29 12:55:40
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24576