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