[Issue 8650] New: SLice opOpAssign SLice with overlap does not throw
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Sep 13 08:34:22 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8650
Summary: SLice opOpAssign SLice with overlap does not throw
Product: D
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: monarchdodra at gmail.com
--- Comment #0 from monarchdodra at gmail.com 2012-09-13 08:34:37 PDT ---
--------
void main()
{
int[] b = new int[](10);
b[] = 5;
b[0..6] += b[4..10];
}
--------
Behavior: Runs until end of program.
Expected: A error to be thrown: Overlapping operations are illegal.
--
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