Bug 13633 – __fieldPostBlit generates even if this(this) anntotated with @disable
Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-10-18T17:28:00Z
Last change time
2017-06-25T17:05:34Z
Assigned to
nobody
Creator
wazar.leollone
Comments
Comment #0 by wazar.leollone — 2014-10-18T17:28:38Z
module test1;
struct A
{
this(this)
{
}
}
struct B
{
A a;
}
struct C
{
const B b;
@disable this(this);
}
This code raises an error "Error:
mutable method test1.B.__fieldPostBlit is not callable using a
const object"
However __fieldPostBlit shouldn't be generated for C, because C has a disabled postblit.
Comment #1 by dlang-bugzilla — 2017-06-25T17:05:34Z