-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Open
Labels
A-thread-localsArea: Thread local storage (TLS)Area: Thread local storage (TLS)C-bugCategory: This is a bug.Category: This is a bug.F-thread_local`#![feature(thread_local)]``#![feature(thread_local)]`O-windowsOperating system: WindowsOperating system: WindowsT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Description
#![feature(thread_local)]
#[no_mangle]
#[thread_local]
pub static FOO: u32 = 3;
Does not compile on x86_64-pc-windows-msvc and x86_64-pc-windows-gnu, due to:
error: symbol `FOO` is already defined
--> lib.rs:5:1
|
5 | pub static FOO: u32 = 3;
| ^^^^^^^^^^^^^^^^^^^
error: aborting due to 1 previous error
Found this while working on #134777
Metadata
Metadata
Assignees
Labels
A-thread-localsArea: Thread local storage (TLS)Area: Thread local storage (TLS)C-bugCategory: This is a bug.Category: This is a bug.F-thread_local`#![feature(thread_local)]``#![feature(thread_local)]`O-windowsOperating system: WindowsOperating system: WindowsT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.