Summary: Passing alias to member function does not work (1/2)
           Product: D
           Version: unspecified
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

This is the first of two related bug reports.

class A
    A next;

    void fun(alias fun)()

    void gun()
        void hun(A a)

Error: template instance cannot use local 'hun' as parameter to non-global
template fun(alias fun)

This might not work due to an implementation limitation in the current dmd (the
"this" pointer and the stack frame pointer compete for the same register), but
as the next bug will show, the code doesn't work even if said limitation is
worked around.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to