Skip to content

avoid ICE on conflicting TLS declarations - #1701

Open
amirHdev wants to merge 2 commits into
rust-lang:mainfrom
amirHdev:tls-declaration-ice
Open

amirHdev wants to merge 2 commits into
rust-lang:mainfrom
amirHdev:tls-declaration-ice

Conversation

@amirHdev

@amirHdev amirHdev commented Sep 12, 2026

Copy link
Copy Markdown
Contributor

fixes #1691

declaring the same symbol as both thread-local and non-thread-local currently makes cg_clif ICE when Cranelift tries to merge the declarations.

we can check for the mismatch first and reports a compiler error instead

Signed-off-by: Amirhossein Akhlaghpour <m9.akhlaghpoor@gmail.com>
Signed-off-by: Amirhossein Akhlaghpour <m9.akhlaghpoor@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ice Can't change TLS data object to normal or in the opposite way

1 participant