[Issue 5972] New: CTFE: Can't assign to elements of arrays of slices

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon May 9 21:20:24 PDT 2011


http://d.puremagic.com/issues/show_bug.cgi?id=5972

           Summary: CTFE: Can't assign to elements of arrays of slices
           Product: D
           Version: D1 & D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: clugdbug at yahoo.com.au


--- Comment #0 from Don <clugdbug at yahoo.com.au> 2011-05-09 21:16:26 PDT ---
int foo()
{
  char [] z = "abc".dup;
  char[] [] a = [null, null];
  a[0]  = z[0..2];
  a[0][2] = 'q';
  return 56;
}
static assert(foo()==56);

This doesn't compile, previously it compiled but generated wrong code.

-- 
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