[Patch, Fortran] PR 40041 - Remove spurious warning about typing intrinsic functions
Daniel Kraft
d@domob.eu
Wed May 6 15:34:00 GMT 2009
Tobias Burnus wrote:
> This patch is close to being obvious. Currently, a valid warning
> is printed for
> intrinsic abs
> real abs
> as "abs" cannot really be typed as its generic interfaces are known.
> The warning was added by Daniel Franke with Rev. 126153 for PR 20373.
>
> However, as Daniel Franke has just reported (PR 40041), it one
> does not use IMPLICIT NONE and if one uses the intrinsic function,
> the function 'ABS' gets implicitly typed - and the warning gets
> thus also printed for
> intrinsic abs
> a = abs(b)
> which is wrong.
>
> The solution is obvious: Only warn if an intrinsic function has
> explicitly typed.
>
> Bootstrapped on x86_64-linux and regtesting being performed.
> OK for the trunk? (Assuming no testsuite failure.)
Ok if no failures.
Thanks!
Daniel
More information about the Gcc-patches
mailing list