Bug 15503 – Namespace lookup not following scoping rules

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2016-01-03T07:24:36Z
Last change time
2018-04-10T05:48:04Z
Keywords
C++
Assigned to
No Owner
Creator
Walter Bright
See also
https://issues.dlang.org/show_bug.cgi?id=15389

Comments

Comment #0 by bugzilla — 2016-01-03T07:24:36Z
The following should work, according to the scoping rules: -----------x.d------------ import y; //struct ns extern (C++, ns) { class X { y.ns.Y a; } } ----------y.d------------ import x; //struct ns extern (C++, ns) { class Y { x.ns.X b; } } It does work if the struct is used.
Comment #1 by bugzilla — 2016-01-05T08:05:51Z
Comment #2 by bugzilla — 2018-04-10T05:48:04Z
(In reply to Walter Bright from comment #1) > https://github.com/D-Programming-Language/dmd/pull/5330 And it was pulled!