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.

Reply via email to