Summary: scope x = new Foo; does not allocate on stack if Foo
Keywords: patch, wrong-code
Created an attachment (id=379)
Patch to fix bug
extern(C) int printf(char*, ...);
scope x = new Foo;
Outputs "Foo.new" at runtime, even though the spec says that objects having
custom allocators will be allocated on the stack if they are called without
arguments to new.
This seems to be caused by dmd automatically prepending the class size to new's
arguments list, so it always has at least one argument.
Attached is a patch to fix this.
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------