[Issue 18057] [ICE] Segmentation fault (stack overflow) in Expression::ctfeInterpret()
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Dec 12 22:09:18 UTC 2017
https://issues.dlang.org/show_bug.cgi?id=18057
--- Comment #2 from Iain Buclaw <ibuclaw at gdcproject.org> ---
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++);
}
}
---
--
More information about the Digitalmars-d-bugs
mailing list