Bug 7447 – Alias template within struct/class not visible when struct/class is accessed through an alias

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2012-02-05T17:15:00Z
Last change time
2012-12-02T11:39:30Z
Keywords
rejects-valid
Assigned to
nobody
Creator
smjg

Comments

Comment #0 by smjg — 2012-02-05T17:15:17Z
struct Qwert { template yuiop(int asdfg) { alias Qwert yuiop; } } void main() { alias Qwert Hjkl; alias Hjkl.yuiop!(1) Zxcvb; } ---------- alias_template.d(8): Error: alias alias_template.main.Hjkl template identifier y uiop is not a member of alias Hjkl alias_template.d(8): Error: alias alias_template.main.Hjkl template identifier y uiop is not a member of alias Hjkl alias_template.d(9): Error: no property 'yuiop!(1)' for type 'Qwert' alias_template.d(9): Error: alias Zxcvb cannot alias an expression __error ---------- DMD 2.057 Win32. No error in 1.071.
Comment #1 by andrej.mitrovich — 2012-12-02T11:39:30Z
Seems to work in 2.060