[Issue 10763] New: (&x)[0 .. 1] doesn't work in CTFE
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Aug 5 15:42:47 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10763
Summary: (&x)[0 .. 1] doesn't work in CTFE
Product: D
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Keywords: CTFE
Severity: enhancement
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: nilsbossung at googlemail.com
--- Comment #0 from Nils <nilsbossung at googlemail.com> 2013-08-05 15:42:46 PDT ---
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)
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list