www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12263] New: Specialized template parameter incorrectly fail to match to the same name template.

reply d-bugmail puremagic.com writes:
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 puremagic.com
        ReportedBy: k.hara.pg gmail.com



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: -------
Feb 25 2014
next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12263


Kenji Hara <k.hara.pg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull



https://github.com/D-Programming-Language/dmd/pull/3338

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 25 2014
prev sibling next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12263




Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/c170cacb5acdf3424746348bea86f2a1566987d7
fix Issue 12263 - Specialized template parameter incorrectly fail to match to
the same name template

https://github.com/D-Programming-Language/dmd/commit/f73abdc37caaba30069496d5b0ca3e95ca08370d


Issue 12263 - Specialized template parameter incorrectly fail to match to the
same name template

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 26 2014
prev sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12263


Kenji Hara <k.hara.pg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 27 2014