void fn(int); void fn(const int x) { } Error: function `fn` redeclaration with different type gcc and clang allow this without warnings
@WalterBright created dlang/dmd pull request #13845 "fix Issue 22896 - importC: 'function redeclaration with different typ…" fixing this issue: - fix Issue 22896 - importC: 'function redeclaration with different type' should ignore const https://github.com/dlang/dmd/pull/13845
dlang/dmd pull request #13845 "fix Issue 22896 - importC: 'function redeclaration with different typ…" was merged into master: - 030aa6f86d1593407e567fe2529738d2d86a5f0d by Walter Bright: fix Issue 22896 - importC: 'function redeclaration with different type' should ignore const https://github.com/dlang/dmd/pull/13845