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

[Bug fortran/41719] [OOP] invalid: Intrinsic assignment involving polymorphic variables



------- 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


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