-
Notifications
You must be signed in to change notification settings - Fork 12.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Undefined reference with debug flag #13213
Labels
A-debuginfo
Area: Debugging information in compiled programs (DWARF, PDB, etc.)
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Comments
KokaKiwi
added a commit
to KokaKiwi/rust-highlight
that referenced
this issue
Mar 30, 2014
Maybe due to #13143? |
It certainly seems to be related to static variables and it seems to be some cross-crate problem. I'll look into it. |
Another example (from #13258) a.rs: #![crate_type = "lib"]
pub use private::P;
pub struct S {
p: P,
}
mod private { // `pub mod` solves problem
pub struct P {
p: i32,
}
pub static THREE: P = P { p: 3 };
}
pub static A: S = S { p: private::THREE }; b.rs: extern crate a;
fn main() {
let B: a::S = a::A;
} |
hannobraun
added a commit
to hannobraun/vndf-2016
that referenced
this issue
Apr 7, 2014
This is a workaround for this bug: rust-lang/rust#13213
michaelwoerister
added a commit
to michaelwoerister/rust
that referenced
this issue
Apr 10, 2014
Fixes issue rust-lang#13213, that is linker errors when the inlined static has been optimized out of the exporting crate.
alexcrichton
pushed a commit
to alexcrichton/rust
that referenced
this issue
Apr 10, 2014
Fixes issue rust-lang#13213, that is linker errors when the inlined static has been optimized out of the exporting crate.
bors
added a commit
that referenced
this issue
Apr 10, 2014
Closes #13441 (debuginfo: Fixes and improvements for #12840, #12886, and #13213) Closes #13433 (Remove references to @trait from a compiler error message) Closes #13430 (Fix outdated lint warning about inner attribute) Closes #13425 (Remove a pile of (mainly) internal `~[]` uses) Closes #13419 (Stop using transmute_mut in RefCell) Closes #13417 (Remove an unnecessary file `src/libnative/io/p`.) Closes #13409 (Closing assorted resolve bugs) Closes #13406 (Generalized the pretty-print entry points to support `-o <file>`.) Closes #13403 (test: Add a test for #7663) Closes #13402 (rustdoc: Prune the paths that do not appear in the index.) Closes #13396 (rustc: Remove absolute rpaths) Closes #13371 (Rename ast::Purity and ast::Impure Function. Closes #7287) Closes #13350 (collections: replace all ~[T] with Vec<T>.)
❤️ |
flip1995
pushed a commit
to flip1995/rust
that referenced
this issue
Aug 8, 2024
Remove `multispan_sugg[_with_applicability]` They're thin wrappers over the corresponding diag method so we should just use that instead changelog: none
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-debuginfo
Area: Debugging information in compiled programs (DWARF, PDB, etc.)
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
It happens only when compiling with debug flag (-g), but I don't know if HashMap is the only things that trigger it.
Code:
Output:
I'm using the latest Rust nightly build on Arch Linux:
The text was updated successfully, but these errors were encountered: