D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 19610 - __c_longlong is forward referenced
Summary: __c_longlong is forward referenced
Status: RESOLVED WORKSFORME
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: x86_64 Mac OS X
: P1 critical
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-24 01:08 UTC by Heromyth
Modified: 2021-04-02 19:15 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Heromyth 2019-01-24 01:08:42 UTC
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
}
Comment 1 moonlightsentinel 2021-04-02 19:15:37 UTC
The test case compiles with 2.096