Skip to content

'Instruction does not dominate all uses' wrt. ternary expressions using array literals #4570

Open
@kinke

Description

@kinke
struct S {
    ~this() {}
}

int foo(S[] ss...) { return 0; }

void bar(bool a) {
    const r = a ? foo(S()) : foo(S());
}

The frontend lowers the ternary to (a) ? foo([(S())][]) : foo([(S())][]).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions