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

Bud Davis bdavis9659@comcast.net
Fri May 14 23:43:00 GMT 2004


> 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
  




More information about the Fortran mailing list