[Issue 23614] New: ImportC: __int128 not supported
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Mon Jan  9 17:55:14 UTC 2023
    
    
  
https://issues.dlang.org/show_bug.cgi?id=23614
          Issue ID: 23614
           Summary: ImportC: __int128 not supported
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Mac OS X
            Status: NEW
          Severity: blocker
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: doob at me.com
Compiling the following C code:
unsigned long long _mulx_u64(unsigned long long __X, unsigned long long __Y,
unsigned long long *__P)
{
    unsigned __int128 __res = (unsigned __int128) __X * __Y;
    *__P = (unsigned long long) (__res >> 64);
    return (unsigned long long) __res;
}
Results in the following errors:
foo.c(3): Error: missing comma or semicolon after declaration of `extern ()`,
found `__res` instead
I'm using macOS 13.0.1, DMD v2.101.1 and Xcode 14.2.
--
    
    
More information about the Digitalmars-d-bugs
mailing list