[Issue 10968] New: array copy "1-to-N" by-passes "this(this) @disable"
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Sep 5 01:44:30 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10968
Summary: array copy "1-to-N" by-passes "this(this) @disable"
Product: D
Version: D2
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 2013-09-05 01:44:28 PDT ---
For either static or dynamic
//----
struct S
{
this(this) @disable;
}
void main()
{
S s;
S[1] ss = s; //Passes, should fail
ss = s; //Passes, should fail
ss[] = s; //Passes, should fail
ss = ss; //Correctly fails
ss[] = ss[]; //Correctly fails
S s2 = s; //Correctly fails
}
--
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