[J3] [EXTERNAL] Re: Question about "Ambiguous interfaces in generic interface"

Clune, Thomas L. (GSFC-6101) thomas.l.clune at nasa.gov
Fri Oct 7 14:36:20 UTC 2022

Hi Steve,

I agree with Brad’s analysis, and my NAG compiler generates the error:

Error: overload.F90, line 20: Ambiguous specific names MPI_BCAST_F08TS and MPI_BCAST_F08 in generic MPI_BCAST

This is the latest patch (7013) so it is possible earlier patches did not complain?


  *   Tom

From: J3 <j3-bounces at mailman.j3-fortran.org> on behalf of j3 <j3 at mailman.j3-fortran.org>
Reply-To: j3 <j3 at mailman.j3-fortran.org>
Date: Friday, October 7, 2022 at 9:43 AM
To: j3 <j3 at mailman.j3-fortran.org>
Cc: Steve Lionel <steve at stevelionel.com>
Subject: [EXTERNAL] Re: [J3] Question about "Ambiguous interfaces in generic interface"

On 10/7/2022 9:36 AM, Jeff Hammond via J3 wrote:
I am trying to understand why GCC Fortran (12.2) rejects this code, whereas Cray and Intel are happy with it (and NVHPC is too, if I use something other than type(*)).

FWIW, NAG Fortran 7.1 is also happy with this code.

D:\Projects>nagfor -c -f2018 t.f90
NAG Fortran Compiler Release 7.1(Hanzomon) Build 7108
Warning: t.f90, line 14: Unused dummy variable BUF
Warning: t.f90, line 18: Unused dummy variable BUFFER
[NAG Fortran Compiler normal termination, 2 warnings]


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.j3-fortran.org/pipermail/j3/attachments/20221007/96ebf34f/attachment.htm>

More information about the J3 mailing list