Gfortran does not compile dynamo (and others)
Jerry DeLisle
jvdelisle@verizon.net
Sun Feb 4 17:42:00 GMT 2007
Ignacio Fernández Galván wrote:
> --- Jerry DeLisle <jvdelisle@verizon.net> wrote:
>
>> I am interested in whether or not this is a gfortran bug. Can you
>> create a
>> small test case from this with the filename set. You can send to me
>> offlist if
>> you like.
>
> OK, I checked without the err= and it says:
>
> Fortran runtime error: Error closing file in OPEN statement
>
> Adding just a "close(in)" before the open statement works, so I guessed
> it could be as simple as this:
>
> program test
>
> open(17,file='test.txt',status='unknown')
> open(17,file='test.txt',status='old')
>
> end program
>
> and indeed, g77 works, gfortran (4.1.1 20060724) exits with the
> message:
>
> At line 4 of file test4.f
> Fortran runtime error: Cannot change STATUS parameter in OPEN
> statement
>
> However, gfortran (4.3.0 20070130) works OK, although it still gives
> the error with the complete Gaussian98 source (creating a short test
> would be quite hard for me, I'm afraid). Could it be some bug left
> between both gfortran versions?
>
> I'll keep trying to get more information.
>
> Ignacio
See PR27704. This is fixed in 4.2 and 4.3. I did not backport to 4.1. Does 4.1
work for you otherwise?
I could look into backporting. Is this what you really need?
Jerry
More information about the Fortran
mailing list