[Bug libfortran/27046] [mingw32] mixed C-Fortran I/O doesn't flush
fxcoudert at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Thu Sep 28 22:34:00 GMT 2006
------- Comment #9 from fxcoudert at gcc dot gnu dot org 2006-09-28 22:34 -------
(In reply to comment #7)
> Changing main() in ctesti.c to start with:
> int main(int argc, char** argv) {
> setvbuf(stdout, NULL, _IOLBF, 0);
>
> fixes the redirection problem.
After some more testing, this fix doesn't work in all cases (e.g. in a shell of
MSYS window). I'm closing this PR: after all, this is not a bug in the
compiler, mixed-languages code is supposed to correctly flush both I/O systems
after operations. I would have liked to provide a workaround, only there
doesn't appear to be anythink general and robust enough.
--
fxcoudert at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27046
More information about the Gcc-bugs
mailing list