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

--- Comment #0 from 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:
------- You are receiving this mail because: -------

Reply via email to