http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47694

Tobias Burnus <burnus at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jvdelisle at gcc dot
                   |                            |gnu.org

--- Comment #1 from Tobias Burnus <burnus at gcc dot gnu.org> 2011-02-11 
14:34:55 UTC ---
Seems to work for me on x86-64-linux using
gcc version 4.6.0 20110202 (experimental) [trunk revision 169512]

$ mkfifo tmpfifo
$ gfortran test.f90
$ ./a.out

and then in a different terminal window:
$ cat > tmpfifo

All items I type there appear after I hit "enter" as output of "./a.out".

 * * *

Hmm, seems as if I can reproduce the problem: If I paste (middle click) the
following text into the "cat > tmpfifo"

"Using gfortran (4.6.0 20110209), this stops before reading all data in the
pipe
unless it is further topped up from the other end ;) As written, no such
problem with sunf95, g95, openf95 (runs until pipe emptied, then waits for
more).  I presume it is a buffering problem somewhere."

(that's 4 lines with line breaks after "pipe", "such", "for")

I get:
 "1 Using gfortran (4.6.0 20110209), this stops before reading all data in the
pipe"

if I then hit "enter" another time, I get:

 "2 unless it is further topped up from the other end ;) As written, no such"


Expected: Lines 1 to 3 are shown right a way without waiting for two additional
line breaks. That's what I also get with ifort.

Reply via email to