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: [email protected]
Reporter: [email protected]
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.
--