This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/46328] [OOP] type-bound operator call with non-trivial polymorphic operand
- From: "janus at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 6 Nov 2010 12:01:59 +0000
- Subject: [Bug fortran/46328] [OOP] type-bound operator call with non-trivial polymorphic operand
- Auto-submitted: auto-generated
- References: <bug-46328-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46328
janus at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[OOP] ICE with class in |[OOP] type-bound operator
|parentheses |call with non-trivial
| |polymorphic operand
--- Comment #1 from janus at gcc dot gnu.org 2010-11-06 12:01:51 UTC ---
This one is related to PR 46262: Both contain polymorphic type-bound operator
calls with "non-trivial" operands. In the example here one might still just
"optimize away" the parenthesis, but in more general cases like
u = (u*2.)*3.
one needs to insert a temporary (ditto for PR42626), so that this line is
translated into something like:
{
class$field tmp;
tmp = u.$vptr->multiply_real (u,2.);
u = tmp.$vptr->multiply_real (tmp,3.);
}
This does not work yet.