https://issues.dlang.org/show_bug.cgi?id=18115
Walter Bright <bugzi...@digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|CTFE |rejects-valid --- Comment #16 from Walter Bright <bugzi...@digitalmars.com> --- BTW, here's where the constant folding is done: ------------ dtemplate.d(1586)---------------- // Optimize argument to allow CT-known length matching farg = farg.optimize(WANTvalue, (fparam.storageClass & (STC.ref_ | STC.out_)) != 0); //printf("farg = %s %s\n", farg.type.toChars(), farg.toChars()); -------------------------------------------------- https://github.com/dlang/dmd/blob/master/src/dmd/dtemplate.d#L1587 I'm not giving up yet, maybe I'll think of something :-) or maybe one of you guys will. In any case, it's not a CTFE issue. I'll remark it as rejects-valid for the time being. --