https://issues.dlang.org/show_bug.cgi?id=14912
--- Comment #7 from Iain Buclaw <ibuc...@gdcproject.org> --- (In reply to Steven Schveighoffer from comment #6) > Why would a template need memcpy? > > T *_d_newitem(T)() > { > // could eliminate typeid here > T *result = cast(T *)GC.malloc(T.sizeof, typeid(T).flags); > *result = T.init; > return result; > } That's fine for anything except classes... --