undefined reference to thread local variable in generic function #73088
Labels
A-linkage
Area: linking into static, shared libraries and binaries
A-thread-locals
Area: Thread local storage (TLS)
C-bug
Category: This is a bug.
F-thread_local
`#![feature(thread_local)]`
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried this code:
I expected to see this happen: the code compiles and runs
Instead, this happened: the linker fails with "undefined reference to `bug_thread_local::FOO'"
Meta
rustc --version --verbose
:backtrace
The text was updated successfully, but these errors were encountered: