digitalmars.D.bugs - [Issue 19600] New: Cannot assign `new`d stuct as CTFE
- d-bugmail puremagic.com (27/27) Jan 20 2019 https://issues.dlang.org/show_bug.cgi?id=19600
https://issues.dlang.org/show_bug.cgi?id=19600 Issue ID: 19600 Summary: Cannot assign `new`d stuct as CTFE Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: enhancement Priority: P1 Component: dmd Assignee: nobody puremagic.com Reporter: iamthewilsonator hotmail.com int test() { int t0; int* n0 = new int; *n0 = t0; struct S { int x; } S t1; S* n1 = new S; *n1 = t1; return 10; } pragma(msg, test()); fails with Error: *n1 = t1 cannot be evaluated at compile time --
Jan 20 2019