-
-
Notifications
You must be signed in to change notification settings - Fork 699
(&x)[0 .. 1] doesn't work in CTFE #18644
Copy link
Copy link
Open
Labels
Description
Nils reported this on 2013-08-05T15:42:46Z
Transferred from https://issues.dlang.org/show_bug.cgi?id=10763
CC List
- Iain Buclaw (@ibuclaw)
Description
static assert({
int x;
int[] a = (&x)[0 .. 1];
return true;
}());
Error: pointer & x cannot be sliced at compile time (it does not point to an array)Reactions are currently unavailable