This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]