http://d.puremagic.com/issues/show_bug.cgi?id=10016
Summary: 2.062 -> 2.063 Out of memory using RefCounted
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: regression
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Henning Pohl <[email protected]> 2013-04-30 08:44:17
PDT ---
struct RefCounted(T) {
struct RefCountedStore {
struct Impl {
T _payload;
}
Impl* _store;
}
RefCountedStore _refCounted;
void opAssign(typeof(this)) { }
void opAssign(T) { }
@property refCountedPayload() {
return _refCounted._store._payload;
}
alias refCountedPayload this;
}
struct S {
int i = malloc;
}
class C {
}
class N {
this(C) {
}
C c() {
return null;
}
}
class D : N {
this() {
super(c);
}
RefCounted!S _s;
}
2.063:
-----
Fatal Error: Out of memory
-----
2.062:
-----
main.d(22): Error: undefined identifier malloc
main.d(42): Error: template instance main.RefCounted!(S) error instantiating
-----
DustMite did a good job :]
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------