digitalmars.D.bugs - [Issue 5972] New: CTFE: Can't assign to elements of arrays of slices
- d-bugmail puremagic.com (26/26) May 09 2011 http://d.puremagic.com/issues/show_bug.cgi?id=5972
- d-bugmail puremagic.com (13/13) May 10 2011 http://d.puremagic.com/issues/show_bug.cgi?id=5972
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 puremagic.com
ReportedBy: clugdbug yahoo.com.au
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: -------
May 09 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5972
Walter Bright <bugzilla digitalmars.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |bugzilla digitalmars.com
Resolution| |FIXED
16:00:18 PDT ---
https://github.com/D-Programming-Language/dmd/commit/c4604f136689660c8926b8eb06de0d1d104b7641
https://github.com/D-Programming-Language/dmd/commit/bcd6f309a4b6492dadc7fe46c43691b09b510a87
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 10 2011








d-bugmail puremagic.com