This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: runs in gcc 3.2.2 but not in gcc 3.3. Why?


> I have a fortran code that writes reads an asc file
> and write it in a direct acess file. I'm running it
> with no problem at all in:
> 
> GNU F77 version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)
> (i386-redhat-linux)
> 
> I tried to use the same code in a
> 
> GNU F77 version 3.3 20030226 (prerelease) (SuSE Linux)
> (i486-suse-linux)
> 
> and though it compiles with no problem, it didn't work
> and I have the message 
> 
> cdue: formatted io not allowed
> apparent state: unit 18 named myfile
> lately writing direct unformatted external IO
> Abortpaulartcoelho at yahoo dot com dot br
> 
> 

A change went into g77 that fixed PR 10197 which seems to
be closely related to the problem you are experiencing.

Take a look at 

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


Probably if you add a FORM="FORMATTED" to the open for
unit 18 it will work fine.


hope this helps,
bud davis
  



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]