This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/41556] Errors in applying operator/assignment to an abstract type
- 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: 5 Nov 2009 13:43:26 -0000
- Subject: [Bug fortran/41556] Errors in applying operator/assignment to an abstract type
- References: <bug-41556-15301@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #6 from janus at gcc dot gnu dot org 2009-11-05 13:43 -------
(In reply to comment #5)
> operand = operand%product(scale) ! alternate implementation
> 1
> Error: Variable must not be polymorphic in assignment at (1)
This error message has been added in r152919, as a fix for PR41719. In
principle it should only apply to intrinsic assignments (cf. F03 standard,
section 7.4.1.2), but it falsely rejects the defined assignment in the test
case.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41556