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 Subject: Re: Why does read(*,*) not work in gfortran 4.x? In-reply-to: X-012-Sender: halo1 AT inter DOT net DOT il To: djgpp AT delorie DOT com Message-id: <83ty8m5gsz.fsf@gnu.org> References: 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 Precedence: bulk > From: Felix > 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?