This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran 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]

A question concerning ambiguous interfaces involving unlimited polymorphic formal arguments


Dear All,

Jerry found that the example of OOP given in the PGI Insider will not
compile with gfortran because it does not distinguish unlimited
polymorphic formal arguments from any other type or kind. This is
trapped at interface.c:487;


  if (ts1->type == BT_CLASS
      && ts1->u.derived->components->ts.u.derived->attr.unlimited_polymorphic)
    return 1;

On removing this, gfortran is happy with the example.

Otherwise, 'addValue has to be removed from the generic 'add' and
called explicitly from each of the other generics subroutines.

I am unable to find any enlightenment in the F2003 standard as to
which is correct.

Does anybody know how this should be resolved?

Cheers

Paul


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