Bug 22407 – importC: Error: cannot implicitly convert expression of type 'extern (C) int(int a)' to 'const(extern (C) int function(int))'

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

Comments

Comment #0 by ibuclaw — 2021-10-17T14:00:59Z
--- typedef int (*func) (int a); int fun1 (int a); const func table[1] = { fun1 };
Comment #1 by dlang-bot — 2021-10-17T15:22:18Z
@ibuclaw created dlang/dmd pull request #13182 "fix Issue 22407 - importC: Error: cannot implicitly convert expression of type 'extern (C) int(int a)' to 'const(extern (C) int function(int))'" fixing this issue: - fix Issue 22407 - importC: Error: cannot implicitly convert expression of type 'extern (C) int(int a)' to 'const(extern (C) int function(int))' https://github.com/dlang/dmd/pull/13182
Comment #2 by ibuclaw — 2021-10-17T23:29:37Z
*** Issue 22400 has been marked as a duplicate of this issue. ***
Comment #3 by ibuclaw — 2021-10-17T23:36:59Z
*** Issue 22399 has been marked as a duplicate of this issue. ***
Comment #4 by dlang-bot — 2021-10-18T07:51:09Z
dlang/dmd pull request #13182 "fix Issue 22407 - importC: Error: cannot implicitly convert expression of type 'extern (C) int(int a)' to 'const(extern (C) int function(int))'" was merged into stable: - 66d742d0e93c666616e35ac3faf2cb617a8374cf by Iain Buclaw: fix Issue 22407 - importC: Error: cannot implicitly convert expression of type 'extern (C) int(int a)' to 'const(extern (C) int function(int))' https://github.com/dlang/dmd/pull/13182
Comment #5 by dlang-bot — 2021-10-21T21:39:37Z
dlang/dmd pull request #13209 "Merge stable into master" was merged into master: - 163b5f92048249b6646a69b4c6a68ed641bbe8e9 by Iain Buclaw: fix Issue 22407 - importC: Error: cannot implicitly convert expression of type 'extern (C) int(int a)' to 'const(extern (C) int function(int))' https://github.com/dlang/dmd/pull/13209