Bug 15676 – The compiler does not preserve @disable while generating .di files
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2016-02-12T18:58:00Z
Last change time
2017-03-22T12:21:20Z
Assigned to
nobody
Creator
buknik95
Comments
Comment #0 by buknik95 — 2016-02-12T18:58:03Z
This can even lead to a link error if a struct template's member is being @disabled:
//main.d:
import another;
void main() {
S!int s;
}
//another.d:
struct S(T) {
@disable this(this);
}
//another.di (auto-generated):
struct S(T)
{
this(this);
}
main.o:(.data._D29TypeInfo_S7another8__T1STiZ1S6__initZ+0x30): undefined reference to `_D7another8__T1STiZ1S10__postblitMFZv'