Re: Overload problem
- From: "Michael Metcalf" <michaelmetcalf@xxxxxxxxxxxxxx>
- Date: Wed, 30 Aug 2006 12:51:50 GMT
"leaf" <vuckerster@xxxxxxxxx> wrote in message
news:1156917573.440692.98210@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
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)*
Basically, the pointer and allocatable attributes are NOT among those
properties of arguments that may be used to disambiguate procedure
references. Most typically, type and/or rank are used (a full list is in
"Fortran 95/2003 Explained", Section 5.18).
I see no obvious solution for the sample code. A full answer would depend on
what you really want to do.
HTH,
Mike Metcalf
.
- References:
- Overload problem
- From: leaf
- Overload problem
- Prev by Date: Re: inquire: unknown whether a file is readable?
- Next by Date: Re: closing unit=5 and unit=6 and print *
- Previous by thread: Re: Overload problem
- Next by thread: Reading Cray binary on linux
- Index(es):
Relevant Pages
|