[Bug 178] cc1d locks up when specifying function instead of function pointer in an array

via D.gnu d.gnu at puremagic.com
Mon Apr 6 08:58:50 PDT 2015


http://bugzilla.gdcproject.org/show_bug.cgi?id=178

--- Comment #9 from Jens Bauer <jens-bugzilla at gpio.dk> ---
(In reply to Ketmar Dark from comment #8)
> in your case, however, CTFE engine should abort before even trying to
> evaluate anything, as `void` is not a value suitable for array element. this
> check is easier, and it worth filling a bug in DMD bugzilla.

Yes, I agree. Evaluating the function is also redundant, as void is specified
to return 0.

If I had made it return an int, the case would be different.

-- 
You are receiving this mail because:
You are watching all bug changes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/d.gnu/attachments/20150406/621e83d9/attachment.html>


More information about the D.gnu mailing list