This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/41719] [OOP] invalid: Intrinsic assignment involving polymorphic variables
- From: "janus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Oct 2009 19:10:48 -0000
- Subject: [Bug fortran/41719] [OOP] invalid: Intrinsic assignment involving polymorphic variables
- References: <bug-41719-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from janus at gcc dot gnu dot org 2009-10-16 19:10 -------
Note: It seems this will be legal again in F08.
7.2.1.2 Intrinsic assignment statement
An intrinsic assignment statement is an assignment statement that is not a
defined assignment statement (7.2.1.4).
In an intrinsic assignment statement,
(1) if the variable is polymorphic it shall be allocatable and not a coarray,
...
(4) if the variable is polymorphic it shall be type compatible with expr ;
otherwise the declared types of the variable and expr shall conform as
specified in Table 7.10,
...
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41719