[Patch, Fortran] PR 40041 - Remove spurious warning about typing intrinsic functions

Tobias Burnus burnus@net-b.de
Wed May 6 15:06:00 GMT 2009


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.)

Tobias
-------------- next part --------------
A non-text attachment was scrubbed...
Name: intrinsic.diff
Type: text/x-patch
Size: 2832 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20090506/7f973266/attachment.bin>


More information about the Gcc-patches mailing list