D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 23003 - ImportC should not import object.d
Summary: ImportC should not import object.d
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P1 normal
Assignee: No Owner
URL:
Keywords: ImportC, pull, rejects-valid
Depends on:
Blocks:
 
Reported: 2022-04-10 09:23 UTC by duser
Modified: 2022-04-16 17:59 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description duser 2022-04-10 09:23:58 UTC
int object;

test.c(1): Error: variable `test.object` conflicts with import `test.object` at test.c
Comment 1 Walter Bright 2022-04-16 05:39:18 UTC
The trouble is ImportC shouldn't be importing object.
Comment 2 Dlang Bot 2022-04-16 05:51:41 UTC
@WalterBright created dlang/dmd pull request #13992 "fix Issue 23003 - ImportC should not import object.d" fixing this issue:

- fix Issue 23003 - ImportC should not import object.d

https://github.com/dlang/dmd/pull/13992
Comment 3 Dlang Bot 2022-04-16 17:59:44 UTC
dlang/dmd pull request #13992 "fix Issue 23003 - ImportC should not import object.d" was merged into master:

- 8fae586d1115f00fb9f8bfd5dd1782177fde9e51 by Walter Bright:
  fix Issue 23003 - ImportC should not import object.d

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