Bug 22403 – importC: Error: cannot pass argument '0' of type 'int' to parameter 'const(char)*'

Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-10-17T13:37:41Z
Last change time
2021-10-21T21:39:34Z
Keywords
ImportC, pull, rejects-valid
Assigned to
No Owner
Creator
Iain Buclaw

Comments

Comment #0 by ibuclaw — 2021-10-17T13:37:41Z
--- extern unsigned f1(const char *a); void f2() { f1(0); }
Comment #1 by dlang-bot — 2021-10-17T16:47:12Z
@ibuclaw created dlang/dmd pull request #13185 "fix Issue 22403 - importC: Error: cannot pass argument '0' of type 'int' to parameter 'const(char)*'" fixing this issue: - fix Issue 22403 - importC: Error: cannot pass argument '0' of type 'int' to parameter 'const(char)*' https://github.com/dlang/dmd/pull/13185
Comment #2 by ibuclaw — 2021-10-17T16:50:19Z
*** Issue 22404 has been marked as a duplicate of this issue. ***
Comment #3 by dlang-bot — 2021-10-19T09:58:26Z
dlang/dmd pull request #13185 "fix Issue 22403 - importC: Error: cannot pass argument '0' of type 'int' to parameter 'const(char)*'" was merged into stable: - 07648ef4aa84a8a2b30e16cb38c276d1c2053b50 by Iain Buclaw: fix Issue 22403 - importC: Error: cannot pass argument '0' of type 'int' to parameter 'const(char)*' https://github.com/dlang/dmd/pull/13185
Comment #4 by dlang-bot — 2021-10-21T21:39:34Z
dlang/dmd pull request #13209 "Merge stable into master" was merged into master: - 501d47b9aeaf427ce17d52905e5e5742ae3cde31 by Iain Buclaw: fix Issue 22403 - importC: Error: cannot pass argument '0' of type 'int' to parameter 'const(char)*' (#13185) * fix Issue 22403 - importC: Error: cannot pass argument '0' of type 'int' to parameter 'const(char)*' * fix Issue 22404 - importC: Error: cannot pass argument 'ENUMMEM' of type 'int' to parameter '__tag2' https://github.com/dlang/dmd/pull/13209