dmd/compiler
drpriver 1244ef260b
Fix #21241 - ImportC: wrong static function called after linking (#21242)
Fixes https://github.com/dlang/dmd/issues/21241

C Static functions were being given the same externally mangled
name as their identifier, which caused only one to be picked
when linking with linkers that supported that.

Additionally, the dmd glue code was only outputting one of these
static functions as a workaround for a different linker issue.

Solve this by giving C static functions a unique name (by using D
mangling) and adding an `isStatic()` check to the dmd glue hack.
2025-04-16 10:13:50 +08:00
..
docs
ini
src Fix #21241 - ImportC: wrong static function called after linking (#21242) 2025-04-16 10:13:50 +08:00
test Fix #21241 - ImportC: wrong static function called after linking (#21242) 2025-04-16 10:13:50 +08:00
tools Update copyright years to 2025 (#20958) 2025-03-06 18:17:32 +08:00