[Issue 4140] New: Error: non-constant expression "hello"[1u..__dollar]
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Sat May  1 15:24:06 PDT 2010
    
    
  
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: nobody at puremagic.com
        ReportedBy: nfxjfg at gmail.com
--- Comment #0 from nfxjfg at gmail.com 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: -------
    
    
More information about the Digitalmars-d-bugs
mailing list