[Issue 20719] Self referential struct definition causes stack overflow
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Apr 15 02:16:36 UTC 2020
https://issues.dlang.org/show_bug.cgi?id=20719
moonlightsentinel at disroot.org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |moonlightsentinel at disroot.o
| |rg
--- Comment #2 from moonlightsentinel at disroot.org ---
Maybe related reduction from dustmite:
==============================
alias AliasSeq(TList...) = TList;
enum isCopyable(S) = { S foo; };
struct SumType
{
alias Types = AliasSeq!(typeof(this));
Types[0] t;
alias cp = isCopyable!(Types[0]);
}
================================
This also segfaults but prints
test.d(6): Error: struct test.SumType cannot have field t with same struct type
--
More information about the Digitalmars-d-bugs
mailing list