Closed
Description
I tried this code:
#[macro_export]
macro_rules! n {() => (concat!("", n!()))}
fn main () {
n!();
}
I expected to see this happen: An error message about exceeding some recursion limit
Instead, this happened:
thread 'rustc' has overflowed its stack
fatal runtime error: stack overflow
Meta
Tested on stable 1.51.0 + 1.53.0-nightly (2021-04-26 9684258936dabda2ba49)
Metadata
Metadata
Assignees
Labels
Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)Category: This is a bug.Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.Medium priorityICE tracked in rust-lang/glacier.Performance or correctness regression from one stable version to another.