clang
clang copied to clipboard
Injection of namespace-scoped members cause linker errors
For example, this program:
constexpr {
-> { void foo() { }; }
}
int main() {
foo() { }
}
results in an undefined reference for foo
. In looking at the IR, the definition is not emitted even though the declaration in the AST is marked as used.