[Issue 23584] New: ImportC: expression expected, not `unsigned`

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Dec 27 20:18:34 UTC 2022


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

          Issue ID: 23584
           Summary: ImportC: expression expected, not `unsigned`
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Mac OS X
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: doob at me.com

Compiling the following C code:

int foo(float bar)
{
    return __builtin_bit_cast(unsigned int, bar);
}

Results in the following errors:

foo.c(3): Error: expression expected, not `unsigned`
foo.c(3): Error: found `int` when expecting `)`
foo.c(3): Error: found `)` when expecting `;` following `return` statement

I'm using macOS 13.0.1, DMD v2.101.1 and Xcode 14.2.

--


More information about the Digitalmars-d-bugs mailing list