You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just in case it could help, here's the code I am trying to compile (the start of a HTML lexer with a state transition table):
// Lookahead of 3 symbols, which allows to see "!--" for a comment.enumState{General,TagName,TagAttributeName,TagAttributeValue,Text,Doctype,Comment}enumCheck{Function(fn(c1:char,c2:char,c3:char,c4:char) -> bool),Chars(char,char,char,char)}structTransition{from:State,to:State,lookahead:u8,through:Check,save_char:bool,save_previous_token:bool}static transition_table:&'static [Transition] = &[Transition{from:State::General,to:State::TagName,lookahead:1,through:Check::Chars('<','\0','\0','\0'),save_char:false,save_previous_token:false,}];fnmain(){letmut stdin = std::io::stdio::stdin();for line_result in stdin.lock().lines(){match line_result {Ok(line) => {let slice = line.as_slice().slice_to(line.len() - 1);println!("{}", slice);},Err(err) => {println!("{}", err);return;}}}}
Hopefully, this can help. Please feel free to ask for more information if you need :-)
The text was updated successfully, but these errors were encountered:
conradkleinespel
changed the title
const expr(81: Check::Chars('<', '\x00', '\x00', '\x00')) of type Check has size 20 instead of 24
const expr(...) of type X has size 20 instead of 24
Dec 20, 2014
conradkleinespel
changed the title
const expr(...) of type X has size 20 instead of 24
compiler bug: const expr(...) of type X has size 20 instead of 24
Dec 20, 2014
conradkleinespel
changed the title
compiler bug: const expr(...) of type X has size 20 instead of 24
compiler bug: const expr(...) of type X has size 20 instead of 24Dec 20, 2014
conradkleinespel
changed the title
compiler bug: const expr(...) of type X has size 20 instead of 24
compiler bug: const expr(...) of type X has size 20 instead of 24
Dec 20, 2014
{ i8, i32, i32, i32, i32, [0 x i8] } { i8 1, i32 0, i32 0, i32 0, i32 0, [0 x i8] undef }
{ i8, [7 x i8], [2 x i64] } undef
error: internal compiler error: const expr(31: E::C(0, 0, 0, 0)) of type E has size 20 instead of 24
note: the compiler unexpectedly panicked. this is a bug.
kmcallister
added
the
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
label
Jan 16, 2015
Hello every (reading this) 😃
I seem to have encountered a compiler bug. As explained in the bug report docs, I am reporting this here.
Here's my rustc version (on 64bits Linux Ubuntu 14.04):
I am compiling this through Cargo:
Here's a backtrace of the error:
Just in case it could help, here's the code I am trying to compile (the start of a HTML lexer with a state transition table):
Hopefully, this can help. Please feel free to ask for more information if you need :-)
The text was updated successfully, but these errors were encountered: