Bug 8356 – Disabled postblit ignored on return statement
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-07-07T08:55:00Z
Last change time
2014-09-14T13:01:58Z
Keywords
accepts-invalid
Assigned to
nobody
Creator
k.hara.pg
Comments
Comment #0 by k.hara.pg — 2012-07-07T08:55:09Z
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.
Comment #1 by github-bugzilla — 2012-08-21T05:04:56Z