Skip to content

assign_op with overloaded operator evaluates receiver twice #2528

Closed
@catamorphism

Description

@catamorphism

The user-defined operator case in trans::base::trans_assign_op passes an expr evaluating to the callee's address, rather than the callee address, to trans_call_inner. Since the callee is known, this should be the statically known callee address (as per a FIXME).

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-codegenArea: Code generationI-slowIssue: Problems and improvements with respect to performance of generated code.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions