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

          Issue ID: 14528
           Summary: GIT HEAD: can't pass protected member to template by
                    alias
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Keywords: rejects-valid
          Severity: regression
          Priority: P1
         Component: DMD
          Assignee: nob...@puremagic.com
          Reporter: thecybersha...@gmail.com

This regression is an exacerbation of issue 13744 for protected members.

////////////// f.d /////////////
void tpl(alias a)()
{
    a();
}
////////////// c.d /////////////
import f;

class C
{
    protected static void m() {}

    void fun()
    {
        tpl!m();
    }
}
////////////////////////////////

Introduced in https://github.com/D-Programming-Language/dmd/pull/4558

--

Reply via email to