OS: MacOS Compiler: DMD 2.084 Test code: import std.stdint; import std.bitmanip; void main() { // int64_t auth_key_id=0; // ubyte[8] u1 = nativeToBigEndian(auth_key_id); enum s = int64_t.sizeof; ubyte[s] b; int64_t message_id = bigEndianToNative!int64_t(b); // bug // ubyte[int64_t.sizeof] b2; // bug }
The test case compiles with 2.096