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

--- Comment #2 from Jacob Carlborg <d...@me.com> ---
I'm just trying to compile a C project and reporting compile errors as they
appear.

The module __builtins.di already contains subs or implementations of a couple
of __builtins. Since it's not possible to pass types to regular functions a
macro needs to be added to importc.h that rewrites it to something that DMD can
handle. I added the following to importc.h:

#define __builtin_bit_cast(type,expr) (type) expr

And then could at least continue compiling until the next error.

--

Reply via email to