http://d.puremagic.com/issues/show_bug.cgi?id=8356
Summary: Disabled postblit ignored on return statement
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Keywords: accepts-invalid
Severity: normal
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Kenji Hara <[email protected]> 2012-07-07 08:55:09 PDT ---
This code should raise compile error, but doesn't.
struct S
{
@disable this(this);
}
void main()
{
S[3] sa;
S[3] fsa() { return sa; }
}
In the return statement of function fsa should copy sa variable, but compiler
ignores the disables postblit call.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------