Skip to content

Macros accept empty repetitions which hang the compiler #28085

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
jonas-schievink opened this issue Aug 29, 2015 · 1 comment
Closed

Macros accept empty repetitions which hang the compiler #28085

jonas-schievink opened this issue Aug 29, 2015 · 1 comment
Labels
A-macros Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)

Comments

@jonas-schievink
Copy link
Contributor

This causes an infinite loop:

macro_rules! m {
    ( $()+ )  => ();
}

m!();
@steveklabnik steveklabnik added the A-macros Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..) label Sep 3, 2015
@jonas-schievink
Copy link
Contributor Author

Looks like a duplicate of #24858, so I'll close this

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
A-macros Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)
Projects
None yet
Development

No branches or pull requests

2 participants