http://d.puremagic.com/issues/show_bug.cgi?id=7447

           Summary: Alias template within struct/class not visible when
                    struct/class is accessed through an alias
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: s...@iname.com


--- Comment #0 from Stewart Gordon <s...@iname.com> 2012-02-05 17:15:17 PST ---
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.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to