This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/52010] [OOP] Intrinsic assignment of a CLASS to a TYPE
- From: "fmartinez at gmv dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 28 Jan 2012 23:08:46 +0000
- Subject: [Bug fortran/52010] [OOP] Intrinsic assignment of a CLASS to a TYPE
- Auto-submitted: auto-generated
- References: <bug-52010-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52010
--- Comment #5 from Fran Martinez Fadrique <fmartinez at gmv dot com> 2012-01-28 23:08:46 UTC ---
I have bumped into another problem that I think may be related to this same
topic.
I have an example that generates the following message:
m_pointer_test.f90:22.2:
b%pa => a
1
Error: Different types in pointer assignment at (1); attempted assignment of
CLASS(ta) to TYPE(ta)
If in line 14 I make the change from
type(ta), pointer :: pa => null()
to
class(ta), pointer :: pa => null()
Then it works but then it does not in my Intel version. Actually I do not see
the reason why the change should be made. I have not been able to trace this to
the standard.