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?