Why does gfortran do this?

Eric Inazaki eric@physics.wustl.edu
Sun Feb 8 06:56:00 GMT 2009



Jerry DeLisle wrote:
> Tom Browder wrote:
>> On Sat, Feb 7, 2009 at 4:48 PM, Eric Inazaki <eric@physics.wustl.edu>
>> wrote:
>> ...
>>> Thanks for the tips!  Maybe I should emphasize, the thing that
>>> got my attention was the fact that where the write statements
>>> occur in the loops determines whether or not I get the warnings.
>>
>> I tried your program with gfortran 4.3.2 and got the same warnings at
>> the same lines with either the first two or the last two writes
>> uncommented.
>>
>> And I got no warnings with pgf77 6.2
>>
>> -Tom
>>
> 
> Use -w if you do not want to see warnings.
> 
> Jerry
> 

Jerry,

Are you referring  to gfortran or pgf77?  In my case (gfortran)
I actually kind of want to see the warnings in the hope that it
will help me tighten up my code.  If the warnings are the result
of compiler bugs or quirks, that's different.

eric



More information about the Fortran mailing list