What should happen? CTFE should detect and guard against stack overflow?
Comment #2 by ibuclaw — 2017-12-12T22:09:18Z
In this instance, it should detect and guard against stack overflow, because the value of the initializer is indeed recursive.
Consider the following, that would cause a stack overflow at runtime:
---
struct RBNode
{
RBNode *copy;
this(int num)
{
this.copy = new RBNode(num++);
}
}
---
Comment #3 by github-bugzilla — 2018-01-14T20:25:30Z