the recursive limit doesn't work with println! and other macros #41731
Labels
A-macros
Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)
C-bug
Category: This is a bug.
I-crash
Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
This code makes the compiler crash with a stack overflow (tested on the playground):
You can try this code on the playground.
If you replace the
println!
by aprint!
, the compiler will crash with a segmentation fault instead.You can try this on the playground too.
The compiler doesn't detect the recursive macro. In fact, it only detect them if we remove the
println!
.The text was updated successfully, but these errors were encountered: