Closed
Description
#![feature(const_fn)]
const fn a() -> usize { b() }
const fn b() -> usize { a() }
const ARR: [i32; a()] = [5; 6];
fn main(){}
thread 'rustc' has overflowed its stack
The same problem happens in trans when using static A: usize = a();
instead.
Since we do not have constant conditionals, there's currently no way recursion ever makes sense.