https://issues.dlang.org/show_bug.cgi?id=21497
Basile-z <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |CTFE CC| |[email protected] --- Comment #2 from Basile-z <[email protected]> --- reduced and rewritten to track the issue better: ``` struct T { ubyte[1] data; } void assignZero(ref ubyte[1] dst) { dst[] = 0; // dst[0 .. 1] = 0; eliminates the ICE } int getInit() { T r; assignZero(r.data); return 0; } enum int test = getInit(); ``` The problem seems to be related to CTFE + the slice assign lo and hi indexes + ref parameter. --
