[Issue 24200] ImportC: .di file collected macro conflicts with Special Token

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Oct 27 22:38:02 UTC 2023


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

--- Comment #2 from dave287091 at gmail.com ---
(In reply to Walter Bright from comment #1)
> I don't really know what to do about that. D has a different set of keywords
> than C does, and if D keywords are used in C code, how can it be translated
> into D code?
> 
> I expect that such generated .di files will need to be tweaked by hand.

I think it’d be acceptable to just not emit them into the .di file. The
__VERSION__ one especially as clang pre-defines that one and no one will want
to use them. No one will want the conflicting macros anyway, but they currently
prevent the .di file from being parsed.

--


More information about the Digitalmars-d-bugs mailing list