www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 19610] New: __c_longlong is forward referenced

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 puremagic.com
          Reporter: bitworld 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
}

--
Jan 23