[Issue 19610] New: __c_longlong is forward referenced

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jan 24 01:08:42 UTC 2019


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

          Issue ID: 19610
           Summary: __c_longlong is forward referenced
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Mac OS X
            Status: NEW
          Severity: critical
          Priority: P1
         Component: phobos
          Assignee: nobody at puremagic.com
          Reporter: bitworld at qq.com

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
}

--


More information about the Digitalmars-d-bugs mailing list