www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 20341] New: [REG 2.063] 'this' required for explicit

https://issues.dlang.org/show_bug.cgi?id=20341

          Issue ID: 20341
           Summary: [REG 2.063] 'this' required for explicit instantiation
                    of template member function using template this
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: regression
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: simen.kjaras gmail.com

struct S {
    void fun(int i, this This)() { }
    void gun() {
        // Works:
        this.fun!0();
        // Fails:
        fun!0();
    }
}

According to https://run.dlang.io/is/CKwb4V, this used to work up until 2.062.

--
Oct 30 2019