Bug 21968 – importC: struct fields: AssertError@src/dmd/typesem.d(1890): Assertion failure

Status
RESOLVED
Resolution
FIXED
Severity
critical
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-05-25T13:16:54Z
Last change time
2021-05-28T00:32:49Z
Keywords
ice-on-valid-code, ImportC, pull
Assigned to
No Owner
Creator
Iain Buclaw

Comments

Comment #0 by ibuclaw — 2021-05-25T13:16:54Z
ICE when declaring a new opaque struct in conjunction with a field declaration. --- struct my_struct { struct my_data *data[16]; };
Comment #1 by dlang-bot — 2021-05-27T21:44:57Z
@ibuclaw created dlang/dmd pull request #12598 "Add tests for importC issues 21933, 21965, 21968, 21973." fixing this issue: - fix Issue 21968 - importC: struct fields: AssertError@src/dmd/typesem.d(1890): Assertion failure https://github.com/dlang/dmd/pull/12598
Comment #2 by dlang-bot — 2021-05-28T00:32:49Z
dlang/dmd pull request #12598 "Add tests for importC issues 21933, 21965, 21968, 21973." was merged into master: - b045953f9861a217838157d0b0bf47224f5456e3 by Iain Buclaw: fix Issue 21968 - importC: struct fields: AssertError@src/dmd/typesem.d(1890): Assertion failure https://github.com/dlang/dmd/pull/12598