This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/15328] New:
- From: "gcc-bugzilla at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 May 2004 18:22:38 -0000
- Subject: [Bug fortran/15328] New:
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Consider the following code:
program b
write(*,'(A)', advance='no') 'Prompt: '
read(*,*) i
end program b
When compiled and executed, it should write "Prompt: " to stdout and
wait for an integer input. For example, with NAG's compiler I get
troutmask:sgk[204] f95 -o b b.f90
troutmask:sgk[205] b
Prompt: 8
troutmask:sgk[206]
With gfortran, I get the prompt after I input the integer value.
troutmask:sgk[206] gfortran -static -o b b.f90
troutmask:sgk[207] b
8
Prompt: troutmask:sgk[208]
Clear, the executables from gfortran is waiting for a carriage return
before flushing its buffer to stdout.
Environment:
System: FreeBSD troutmask.apl.washington.edu 5.2-CURRENT FreeBSD 5.2-CURRENT #0: Thu Apr 22 14:44:25 PDT 2004 kargl@troutmask.apl.washington.edu:/usr/obj/usr/src/sys/TROUTMASK i386
host: i386-unknown-freebsd5.2
build: i386-unknown-freebsd5.2
target: i386-unknown-freebsd5.2
configured with: ../gcc/configure --enable-languages=c,f95 --prefix=/home/sgk --with-gmp=/usr/local --disable-libmudflap
How-To-Repeat:
See above.
--
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: critical
Priority: P2
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: kargl at troutmask dot apl dot washington dot edu
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i386-unknown-freebsd5.2
GCC host triplet: i386-unknown-freebsd5.2
GCC target triplet: i386-unknown-freebsd5.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15328