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

Reply via email to