http://d.puremagic.com/issues/show_bug.cgi?id=4499
Summary: calls to @disabled postblit are emitted
Product: D
Version: D2
Platform: Other
OS/Version: Linux
Status: NEW
Keywords: accepts-invalid
Severity: normal
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Christian Kamm <[email protected]> 2010-07-23
23:55:37 PDT ---
The following code triggers the "can't happen" assert.
struct S {
@disable this(this) { assert(false, "can't happen"); }
void foo() {}
}
auto foo() {
S s;
return s;
}
void main() {
auto s = foo();
s.foo();
}
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------