[Issue 10016] New: 2.062 -> 2.063 Out of memory using RefCounted
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Apr 30 08:44:19 PDT 2013
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: nobody at puremagic.com
ReportedBy: henning at still-hidden.de
--- Comment #0 from Henning Pohl <henning at still-hidden.de> 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: -------
More information about the Digitalmars-d-bugs
mailing list