rustc stack overflow #38408
Labels
A-MIR
Area: Mid-level IR (MIR) - https://blog.rust-lang.org/2016/04/19/MIR.html
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
This code makes the current stable and nightly
rustc
overflow its stack:It seems to be a combination of the macro invocation, the negation and the fact that
i32::max_value
is a somewhat special function. If I replace any of the three, compilation works fine (i.e. no assertion => works; no negation => works, geti32::max_value
with an indirection to another function => works).Exact code to reproduce ("lib.rs"):
Exact command prompt:
EDIT: Oh and my platform is Ubuntu AMD64.
EDIT2:
But as I said, it also works on stable.
The text was updated successfully, but these errors were encountered: