[Issue 20341] New: [REG 2.063] 'this' required for explicit instantiation of template member function using template this

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Oct 30 21:35:32 UTC 2019


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 at puremagic.com
          Reporter: simen.kjaras at 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.

--


More information about the Digitalmars-d-bugs mailing list