Skip to content

std::valarray complex expressions have dangling references #2

@ipapadop

Description

@ipapadop

The lifetime of objects in valarray's expressions is not properly extended (GCC/clang, the expression template mechanism keeps expressions as const&).

A potential solution is to detect deferred expressions that fail std::is_move_assignable and std::is_copy_assignable and store them in deferred::expression_

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions