http://d.puremagic.com/issues/show_bug.cgi?id=4140
Summary: Error: non-constant expression "hello"[1u..__dollar]
Product: D
Version: 1.057
Platform: Other
OS/Version: Linux
Status: NEW
Keywords: rejects-valid
Severity: normal
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from [email protected] 2010-05-01 15:24:05 PDT ---
$ cat z.d
const z = "hello";
const h = z[1..$];
$ dmd -c z.d
z.d(2): Error: non-constant expression "hello"[1u..__dollar]
Works with dmd2.
Tested with dmd 1.59 beta (can only select up to 1.057 in bugzilla).
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------