Bug 7410 – Wrong error message for selective import

Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
All
OS
All
Creation time
2012-01-31T08:36:54Z
Last change time
2019-11-30T09:19:30Z
Keywords
accepts-invalid, diagnostic
Assigned to
No Owner
Creator
Leandro Lucarella

Comments

Comment #0 by leandro.lucarella — 2012-01-31T08:36:54Z
/tmp$ cat -n a.d 1 module a; 2 alias int type; /tmp$ cat -n b.d 1 module b; 2 private import a; /tmp$ cat -n c.d 1 module c; 2 private import b : type; 3 type x; /tmp$ dmd -c c.d c.d(3): Error: undefined identifier type The error should be reported at line 2 saying that the symbol type is private to module b or something like that.
Comment #1 by john.loughran.colvin — 2016-08-27T12:14:26Z
This now compiles without an error, which definitely shouldn't happen!
Comment #2 by john.loughran.colvin — 2016-08-27T12:15:28Z
just seen that this was a d1 bug, Should I bump it to d2 seeing as there's still a problem, or open a new one?
Comment #3 by razvan.nitu1305 — 2018-01-26T11:11:23Z
This PR [1] fixes the issue for D2. As D1 is not maintained anymore should we close this? [1] https://github.com/dlang/dmd/pull/7760
Comment #4 by razvan.nitu1305 — 2019-11-30T09:19:30Z
As D1 is not maintained and the bug does not manifest in D2, I'm closing this as FIXED.