[Issue 18115] [REG2.078-b1] case where && is not shortcut anymore in CTFE

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri May 18 03:17:53 UTC 2018


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

Walter Bright <bugzilla at digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|CTFE                        |rejects-valid

--- Comment #16 from Walter Bright <bugzilla at 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.

--


More information about the Digitalmars-d-bugs mailing list