[Issue 15832] Crashing program when a helper template function is used to create a template struct

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Mar 28 04:18:38 PDT 2016


https://issues.dlang.org/show_bug.cgi?id=15832

--- Comment #5 from Atila Neves <atila.neves at gmail.com> ---
At least there's a workaround:

auto m = Mock!T(...);
return m;

I believe that the fact that this behaviour is different from the original
implementation is a compiler bug and would ask for this to reopened.

Also, the memory corruption that resulted from my original implementation goes
well beyong a delegate referencing gargabe. It was really weird.

Atila

--


More information about the Digitalmars-d-bugs mailing list