[Issue 14528] New: GIT HEAD: can't pass protected member to template by alias
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Wed Apr 29 19:33:42 PDT 2015
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: nobody at puremagic.com
Reporter: thecybershadow at 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
--
More information about the Digitalmars-d-bugs
mailing list