Skip to content

error w/ macros that expand into macro definitions #6795

Closed
@jbclements

Description

@jbclements

One of my expansion test cases causes an ICE:

macro_rules! g (
    ($x:ident) =>
    ({
        macro_rules! f(($y:ident)=>
                       ({
                           let $y=3;
                           $x
                       }));
        f!($x)
    }))

fn a() {
    g!(z);
}

=>

Running /usr/local/bin/rustc:
rust: task failed at 'No entry found for key: &{name: 39, ctxt: 0}', /Users/clements/rust/src/libcore/hashmap.rs:490
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', /Users/clements/rust/src/librustc/rustc.rc:351
rust: domain main @0x7fabf9819210 root task failed

before going further, I must check that this happens on incoming as well as my branch....

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-syntaxextArea: Syntax extensionsE-hardCall for participation: Hard difficulty. Experience needed to fix: A lot.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions