Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Polymorphics on left-hand side of assignments

5 views
Skip to first unread message

Rich Townsend

unread,
Jan 31, 2011, 2:58:26 PM1/31/11
to
Hi all --

It's my understanding that polymorphic variables cannot appear on the
left-hand side of an intrinsic assignment statement (7.1.4.2 in the
draft F2003 standard)

However, I cannot find any similar restriction for a defined
assignment. Is it thus possible to have a polymorphic variable on the
lhs of an assignment, if that variable's class implements defined
assignment (via an ASSIGNMENT(=) subroutine)?

Context for my question: NAG Fortran 5.2 is barfing on a defined
assignment to a polymorphic dummy subroutine argument.

Thanks!

Rich


Wolfgang Kilian

unread,
Feb 1, 2011, 3:34:35 AM2/1/11
to

Could you post the code? In the code that I just posted in your other
thread, I used defined assignment for a polymorphic l.h.s., and it
worked with nagfor 5.2.

-- Wolfgang


--
E-mail: firstnameini...@domain.de
Domain: yahoo

0 new messages