[Issue 23402] importc function definitions from includes can cause D name conflicts

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Nov 14 02:12:28 UTC 2022


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

Lance Bachmeier <lance at lancebachmeier.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |lance at lancebachmeier.com

--- Comment #1 from Lance Bachmeier <lance at lancebachmeier.com> ---
This causes a similar problem with enums. I'm getting error messages like this:

#defines(1378): Error: variable `arma_example.FP_NAN` conflicts with enum
member `__anonymous.FP_NAN` at /usr/include/math.h(936)

The error message is confusing, because (a) I don't define FP_NAN in my
program, and (b) the error message itself doesn't make sense, as
arma_example.FP_NAN and __anonymous.FP_NAN are not the same thing.

--


More information about the Digitalmars-d-bugs mailing list