microsoft / ifc-spec

IFC format specification
Creative Commons Attribution 4.0 International
71 stars 7 forks source link

Missing home scope on local variable #149

Open DarkArc opened 5 months ago

DarkArc commented 5 months ago
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?