The error does not occur in 2.063.2, but does in 2.064 and git master (7cb48f8558809e69b60ee6dfc56ea6af73ee405f).
Tested on both Linux and OSX, but both were 64-bit.
The following code causes the assertion failure:
public auto make_encode(T, string name)()
{
return mixin("function(T self) { return self.encodeField!\""~ name ~ "\"(); }");
}
class FileData
{
ulong _member;
@make_encode!(FileData, "member")()
ulong member() const {
return _member;
}
ubyte[] encodeField(string key)()
{
}
}