Skip to content

ICE when compiling a invalid macro #26243

Closed
@fjolliton

Description

@fjolliton

A syntax error in a macro definition caused an ICE.

Here is the whole content that can reproduce the bug in nightly:

macro_rules! show {
    $e:expr => {}
}

(Parentheses are missing around $e:expr)

I get:

test.rs:1:1: 3:2 error: internal compiler error: wrong-structured lhs for follow check (didn't find a TtDelimited or TtSequence)
test.rs:1 macro_rules! show {
test.rs:2     $e:expr => {}
test.rs:3 }

I'm using:

rustc 1.2.0-nightly (764877650 2015-06-12)
binary: rustc
commit-hash: 7648776503040b302fe0589311fb27afe7c1e6cc
commit-date: 2015-06-12
host: x86_64-unknown-linux-gnu
release: 1.2.0-nightly

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions