Bug 22400 – importC: Error: unknown, when compiling source with typedef'd initializer

Status
RESOLVED
Resolution
FIXED
Severity
critical
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-10-17T13:15:35Z
Last change time
2021-10-21T21:39:32Z
Keywords
ice-on-valid-code, ImportC, rejects-valid
Assigned to
No Owner
Creator
Iain Buclaw

Comments

Comment #0 by ibuclaw — 2021-10-17T13:15:35Z
Variation of issue 22399, but using `typedef struct`. --- typedef struct S1 { unsigned short f1; } S1_t; struct S2 { const S1_t *f1; }; const S1_t C1[1] = { {12} }; const struct S2 C3 = {C1};
Comment #1 by ibuclaw — 2021-10-17T23:29:37Z
*** This issue has been marked as a duplicate of issue 22407 ***
Comment #2 by dlang-bot — 2021-10-18T07:51:08Z
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: - f69e21d7c8f86782a67b88e711e789a37d843645 by Iain Buclaw: fix Issue 22400 - importC: Error: unknown, when compiling source with typedef'd initializer https://github.com/dlang/dmd/pull/13182
Comment #3 by dlang-bot — 2021-10-21T21:39:32Z
dlang/dmd pull request #13209 "Merge stable into master" was merged into master: - 9642b547c398fd256544e926d02b5fd54c08622d by Iain Buclaw: fix Issue 22400 - importC: Error: unknown, when compiling source with typedef'd initializer https://github.com/dlang/dmd/pull/13209