[Issue 16081] CTFE mistakes &arr for arr in cast

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri May 27 05:28:00 PDT 2016


--- Comment #1 from Sobirari Muhomori <dfj1esp02 at sneakemail.com> ---

size_t f()
  int[] arr = [13];
  return *(cast(size_t*) &arr);

Error: reinterpreting cast from int[] to ulong* is not supported in CTFE


More information about the Digitalmars-d-bugs mailing list