D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 21982 - importC: Error: variable no definition of struct
Summary: importC: Error: variable no definition of struct
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P1 critical
Assignee: No Owner
URL:
Keywords: ImportC, pull, rejects-valid
Depends on:
Blocks:
 
Reported: 2021-05-27 21:48 UTC by Iain Buclaw
Modified: 2021-05-30 09:08 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Iain Buclaw 2021-05-27 21:48:21 UTC
From the testsuite
---
imports/cstuff1.c(308): Error: variable `cstuff1.tests1.s` no definition of struct `SS`
imports/cstuff1.c(315): Error: variable `cstuff1.tests2.t` no definition of struct `T`
---

Which seems to suggest that TypeTag isn't resolving all issues around symbol resolution.
Comment 1 Dlang Bot 2021-05-29 22:44:41 UTC
@ibuclaw created dlang/dmd pull request #12608 "fix Issue 21982 - importC: Error: variable no definition of struct" fixing this issue:

- fix Issue 21982 - importC: Error: variable no definition of struct

https://github.com/dlang/dmd/pull/12608
Comment 2 Dlang Bot 2021-05-30 09:08:34 UTC
dlang/dmd pull request #12608 "fix Issue 21982 - importC: Error: variable no definition of struct" was merged into master:

- d4e84624513c5569a51b91cc7cb8c1067e2bae3d by Iain Buclaw:
  fix Issue 21982 - importC: Error: variable no definition of struct

https://github.com/dlang/dmd/pull/12608