Re: Overload problem
- From: "Arjen Markus" <arjen.markus@xxxxxxxxxx>
- Date: 29 Aug 2006 23:52:49 -0700
leaf schreef:
I use g95 to compile the code below and met an error:
*Error:Ambiguous interfaces 'print_try4' and 'print_try3' in
generic
interface 'print_try'
at (1)*
How to solve this problem? Thanks in advance!
If you do not use the allocatable and pointer properties
in these subroutines, then there is no need to specify
them: there is no need to have two different versions.
BTW, the allocatable attribute is not allowed on dummy
arguments, IIRC, unless the compiler allows it as an
extension.
I am not quite sure if the pointer attribute should be used to
identify the correct procedure. I expect it is, but others
will be able to confirm this.
Regards,
Arjen
.
- Follow-Ups:
- Re: Overload problem
- From: Richard E Maine
- Re: Overload problem
- References:
- Overload problem
- From: leaf
- Overload problem
- Prev by Date: Re: closing unit=5 and unit=6 and print *
- Next by Date: Re: Merge sort in fortran 90 for linked lists
- Previous by thread: Overload problem
- Next by thread: Re: Overload problem
- Index(es):