delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2011/09/09/03:14:12

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Recipient: djgpp AT delorie DOT com
Date: Fri, 09 Sep 2011 10:13:48 +0300
From: Eli Zaretskii <eliz AT gnu DOT org>
Subject: Re: Why does read(*,*) not work in gfortran 4.x?
In-reply-to: <Xns9F5AF34BB3C7sym00fe34lix@216.151.153.61>
X-012-Sender: halo1 AT inter DOT net DOT il
To: djgpp AT delorie DOT com
Message-id: <83ty8m5gsz.fsf@gnu.org>
References: <Xns9F5AF34BB3C7sym00fe34lix AT 216 DOT 151 DOT 153 DOT 61>
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> From: Felix <junkemail AT junk DOT com>
> Date: 09 Sep 2011 03:54:25 GMT
> Bytes: 1253
> 
>       program Test
>       real first
>       write (*,'(a)') 'Program to regurgitate a number'
>       write (*,'(a,$)') 'Enter number: '
>       read (*,*) first
>       write (*,'(a,f10.5)') 'Regurgitated number is', first
>       stop
>       end
> 
> With GCC 4.6.1 and binutils 2.21.1 (or GCC 4.4.2 and binutils 2.19),
> this program does not properly execute the 'read (*,*)' statement.

Details, please: what did you expect from this program and what
actually happened?

I'm guessing that you bumped into some buffering issue, but it's
impossible to help you without more details.

Also, what version of DJGPP library (djdevNNN.zip) do you have
installed?

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019