D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 22793 - importC: __import conflicts when importing multiple modules with same package
Summary: importC: __import conflicts when importing multiple modules with same package
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: pull
Depends on:
Blocks:
 
Reported: 2022-02-19 06:51 UTC by duser
Modified: 2022-03-04 00:00 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description duser 2022-02-19 06:51:33 UTC
// test.c
__import core.stdc.stdlib;
__import core.stdc.string;

output with dmd v2.099.0-beta.1:

test.c(2): Error: import `test.core` conflicts with import `test.core` at test.c(1)
Comment 1 Dlang Bot 2022-03-03 08:41:37 UTC
@WalterBright created dlang/dmd pull request #13747 "fix Issue 22793 - importC: __import conflicts when importing multiple…" fixing this issue:

- fix Issue 22793 - importC: __import conflicts when importing multiple modules with same package

https://github.com/dlang/dmd/pull/13747
Comment 2 Dlang Bot 2022-03-04 00:00:20 UTC
dlang/dmd pull request #13747 "fix Issue 22793 - importC: __import conflicts when importing multiple…" was merged into master:

- f9b9114af669996168af668544b1aa9e8163a704 by Walter Bright:
  fix Issue 22793 - importC: __import conflicts when importing multiple modules with same package

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