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

ICE when macro expansion has free syntactic variable reference #4773

Closed
pnkfelix opened this issue Feb 3, 2013 · 2 comments
Closed

ICE when macro expansion has free syntactic variable reference #4773

pnkfelix opened this issue Feb 3, 2013 · 2 comments
Labels
A-syntaxext Area: Syntax extensions I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Milestone

Comments

@pnkfelix
Copy link
Member

pnkfelix commented Feb 3, 2013

% rustc --version
rustc 0.6 (77ee858 2013-02-02 11:54:29 +0100)
host: x86_64-apple-darwin

% cat bug.rs
pub fn l() {
    macro_rules! m( ($inp:expr, ) => ( $id ); );
    m!(line,)

% RUST_LOG=rustc=1,::rt::backtrace rustc bug.rs
rust: task failed at 'Key not found in table: {repr: 43}', <core-macros>:15
error: internal compiler error: unexpected failure
note: the compiler hit an unexpected failure path. this is a bug
note: try running with RUST_LOG=rustc=1,::rt::backtrace to get further 
details and report the results to github.com/mozilla/rust/issues
rust: task failed at 'explicit failure', <core-macros>:15
rust: domain main @0x7fc393818a10 root task failed
@lifthrasiir
Copy link
Contributor

Same as #4040.

@graydon
Copy link
Contributor

graydon commented Mar 22, 2013

dupe of #4040

@graydon graydon closed this as completed Mar 22, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-syntaxext Area: Syntax extensions I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Projects
None yet
Development

No branches or pull requests

3 participants