Skip to content
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

error: internal compiler error: range_to_inttype: found ReprPacked on an enum #22746

Closed
fitzgen opened this issue Feb 24, 2015 · 1 comment
Closed
Labels
I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

Comments

@fitzgen
Copy link
Member

fitzgen commented Feb 24, 2015

http://is.gd/XqFILb

stack backtrace:
   1:        0x10e063be3 - sys::backtrace::write::hc8e3cee73e646c590nC
   2:        0x10e091be5 - panicking::on_panic::h00b47941f5bc8a02HOL
   3:        0x10dfbb418 - rt::unwind::begin_unwind_inner::h539538ef7f909326UvL
   4:        0x10d678dcf - rt::unwind::begin_unwind::h17340398235865146743
   5:        0x10d6796fd - diagnostic::Handler::bug::h7e78f4ac01756c63w4E
   6:        0x10aef2028 - session::Session::bug::hb92b783f7b3446ffSnt
   7:        0x10a947da8 - check::check_item::h4a1b4ae849c9e701nTn
   8:        0x10aa19b73 - check_crate::closure.35867
   9:        0x10aa14911 - check_crate::hbe2eb4aab434ad7cVjC
  10:        0x10a3768db - driver::phase_3_run_analysis_passes::h50728865d3ffa6b2gHa
  11:        0x10a35bb9d - driver::compile_input::h349b039ebe75c13eGba
  12:        0x10a434857 - run_compiler::h1e4d87c6044fbf6dZbc
  13:        0x10a431cd1 - thunk::F.Invoke<A, R>::invoke::h2059937391804860278
  14:        0x10a430930 - rt::unwind::try::try_fn::h11862807381821880905
  15:        0x10e10b7e9 - rust_try_inner
  16:        0x10e10b7d6 - rust_try
  17:        0x10a431095 - thunk::F.Invoke<A, R>::invoke::h6573516661401600357
  18:        0x10e07aac3 - sys::thread::thread_start::h9e3555425c6999b2e4G
  19:     0x7fff966f1268 - _pthread_body
  20:     0x7fff966f11e5 - _pthread_body
@sanxiyn sanxiyn added the I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ label Feb 24, 2015
@tamird
Copy link
Contributor

tamird commented Apr 22, 2015

Still ICEs.

use std::mem;

#[repr(packed)]
pub enum BytecodeInstruction {
A, B, C
}

fn main() {
    println!("Hello, world! {}", std::mem::size_of::<BytecodeInstruction>())
}

bors added a commit that referenced this issue Oct 2, 2015
This is technically a [breaking-change].

Fix #2809.
Fix #22746.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Projects
None yet
Development

No branches or pull requests

3 participants