Cheers, everybody

I'm working on this as part of my GSoC project [0].

I'm working on building gdc with the auto-generated `frontend.h` [1], but I'm having some issues

There are functions in dmd that don't have an `extern (C)` or `extern (C++)` but they are used by gdc (are exposed in `.h` files)

An example of such a function is `checkNonAssignmentArrayOp`[2] from `dmd/arrayop.d` which is can be found in `gcc/d/dmd/expression.h` [3]

How does the linker find the right match in dmd? Since the function is `extern (D)`, isn't it mangled differently than C++?

[0] - https://forum.dlang.org/thread/[email protected]
[1] - https://github.com/dlang/dmd/pull/9971
[2] - https://github.com/dlang/dmd/blob/master/src/dmd/arrayop.d#L85 [3] - https://github.com/gcc-mirror/gcc/blob/master/gcc/d/dmd/expression.h#L84

Reply via email to