[Issue 12264] New: [REG2.066a] A specialized alias parameter conflicts with the unspecialized one.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Feb 25 23:48:57 PST 2014


https://d.puremagic.com/issues/show_bug.cgi?id=12264

           Summary: [REG2.066a] A specialized alias parameter conflicts
                    with the unspecialized one.
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: rejects-valid
          Severity: regression
          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:48:56 PST ---
Caused by fixing issue 12077.

Test case:

template X(alias T1)                      { pragma(msg, "1"); }
template X(alias T2 : B!A, alias B, A...) { pragma(msg, "2"); }

struct S(T) {}

void main()
{
    alias x3 = X!(S!int);
    // should prefer the second template
}

-- 
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