[log in to unmask] writes:
> [log in to unmask] writes:
> > If the function is an extended intrinsic the main program should
> > invoke the intrinsic. If it isn't, then your routine should be
> > invoked.
> I would expect many compilers to give my function priority over the
> intrinsic; in fact, I thought the standard required this, so that
> introduction of new intrinsics would not break existing code.
No. The standard requires exactly the opposite. An intrinsic will
"override" a user external routine unless you explicitly declare
it as external in the calling routine. If you want your code to
be portable, you should explicitly declare all of your externals,
as recommended in the standard.
This has been true since at least f77.
--
Richard Maine
[log in to unmask]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|