This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: Need some help here
On Thursday 25 November 2004 10:01, Janne Blomqvist wrote:
> 2) Move the function fn into the main program. Thanks to the explicit
> interface I found a bug where you called fn with just 1 argument
> instead of 2 (when calculating k3), likely the reason for the wrong
> results. As to why it worked at all before, I have no idea.
Also it will cause automatic type conversions of the explicit arguments.
With the the original code (using tan implicit interface), you are passing
kind=8 actual arguments, but the dummy arguments are still kind=4. gfortran
(and apparently also ifort) does not do the IPA necessary to recognise this
error.
Paul