This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/20788] New: Loading libgfortran.so clobbers C redirection of stdin
- From: "ripley at stats dot ox dot ac dot uk" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Apr 2005 12:24:54 -0000
- Subject: [Bug fortran/20788] New: Loading libgfortran.so clobbers C redirection of stdin
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
When using a C main program that has in any way loaded libgfortran.so,
redirected C stdin is broken. This is used by the R project
<http://www.r-project.org> to run scripts, and even occurs even if
the main (C) program has dlopen-ed a DSO with compiled Fortran code
linked against libgfortran.so.
There is separate bug that stops GFORTRAN_STDIN_UNIT being set to a
negative value to avoid the initialization that causes the problem.
--
Summary: Loading libgfortran.so clobbers C redirection of stdin
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: critical
Priority: P2
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: ripley at stats dot ox dot ac dot uk
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20788