CTFE bug or enhancement?

H. S. Teoh via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Jul 3 09:00:03 PDT 2014


On Thu, Jul 03, 2014 at 02:09:09AM +0000, safety0ff via Digitalmars-d-learn wrote:
> On Thursday, 3 July 2014 at 02:02:19 UTC, safety0ff wrote:
> >On Thursday, 3 July 2014 at 01:55:14 UTC, safety0ff wrote:
> >>Actually, this is an enhancement because adding:
> >>enum b = blah
> >>
> >>Makes them fail. :(
> >
> >The question is now: how can the delegate be evaluated for the return
> >value but not for the enum?
> 
> Looks like an ICE:
> https://github.com/D-Programming-Language/dmd/blob/master/src/interpret.c#L5169

All ICE's are bugs and should be reported as such.


T

-- 
If the comments and the code disagree, it's likely that *both* are wrong. -- Christopher


More information about the Digitalmars-d-learn mailing list