ICE: linkage: LLVM ERROR: `global must have a zero initializer!`
matthiaskrgr opened this issue · 3 comments
matthiaskrgr commented
Code
#![crate_type="lib"]
#![feature(linkage)]
#[linkage = "common"]
pub static TEST3: bool = true;
Meta
rustc --version --verbose
:
rustc 1.70.0-nightly (db0cbc48d 2023-03-26)
binary: rustc
commit-hash: db0cbc48d4aaa300713a95d9b317a365a474490c
commit-date: 2023-03-26
host: x86_64-unknown-linux-gnu
release: 1.70.0-nightly
LLVM version: 16.0.0
Error output
<output>
Backtrace
'common' global must have a zero initializer!
ptr @_ZN10treereduce5TEST317hd1b26bd49e54e1d4E
LLVM ERROR: Broken module found, compilation aborted!
mojingran commented
@matthiaskrgr This issue should be closed, right?
matthiaskrgr commented
Why? I can still reproduce the llvm error on latest nightly.