[Issue 12263] New: Specialized template parameter incorrectly fail to match to the same name template.
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Feb 25 23:10:24 PST 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12263
Summary: Specialized template parameter incorrectly fail to
match to the same name template.
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Keywords: rejects-valid
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: k.hara.pg at gmail.com
--- Comment #0 from Kenji Hara <k.hara.pg at gmail.com> 2014-02-25 23:10:22 PST ---
Test case:
template A(alias a) { int x; }
template B(alias a) { int x; }
template fqnSym(alias T : B!A, alias B, A...)
{
enum fqnSym = "match";
}
// A!Object matches to B!A
pragma(msg, fqnSym!(A!(Object)));
// But, B!Object does not match to B!A
pragma(msg, fqnSym!(B!(Object)));
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list