[Issue 21067] Tupleof of struct returned by function with string field lazily passed to function, itself lazily passed to another function, causes runtime OOM.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jul 23 15:41:07 UTC 2020


https://issues.dlang.org/show_bug.cgi?id=21067

--- Comment #1 from FeepingCreature <default_357-line at yahoo.de> ---
A shorter version that "runs" with dmd, but preserves the ldc error:

struct S { int a; int b; }
S test() { return S(); }
void main() { evalArg(dupArg2(test.tupleof)); }
void dupArg2(int, lazy int) {}
void evalArg(lazy void) {}

--


More information about the Digitalmars-d-bugs mailing list