Re: A newbie question

beliavsky_at_aol.com
Date: 01/28/05


Date: 28 Jan 2005 07:52:38 -0800

Michael Prager wrote:
> "James Giles" <jamesgiles@worldnet.att.net> wrote:
>
> >[...] it's bad that statements such as the following are
> >accepted without any warning, even though they are *almost*
> >certainly not the user's intent:
> >
> > D = 0.1
> >
> >Where D is a non-default KIND (probably double).
>
> I agree with that, also. I learned about it the hard way, and
> since then, I see that type of error in quite a bit of the code.
> This should be on compilers' warning lists.
>
> (It seems to me that free Fortran checker for Fortran 77 -- was
> it FORCHECK? -- would catch this sort of thing.)

Forcheck is not free -- maybe you are thinking of FTNCHEK, which saved
my bacon in my F77 grad school days. Links to Fortran static analysis
tools are at
http://www.dmoz.org/Computers/Programming/Languages/Fortran/Tools/Code_Analysis/
. The free Lahey source checker also serves this purpose.