Skip to content

Missing home scope on local variable #149

@DarkArc

Description

@DarkArc
consteval void foo() {}
consteval bool bar() {
    decltype(auto) f = &foo;
    return true;
}

The above variable is lacking home scope information and is thus written to the IFC file as if the original source was:

consteval void foo() {}
decltype(auto) f = &foo;
consteval bool bar() {
    return true;
}

I would expect the home scope to reference the function bar in this case.

Is this intentional/is there a rational for this representation or are we looking at a bug here?

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