http://d.puremagic.com/issues/show_bug.cgi?id=6701

           Summary: template specialization resolution failure
           Product: D
           Version: D2
          Platform: Other
        OS/Version: All
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: d...@dawgfoto.de


--- Comment #0 from d...@dawgfoto.de 2011-09-20 11:10:34 PDT ---
void foo(uint v:0, string op)()
{
  pragma(msg, "specialized");
}

void foo(uint v, string op)()
{
  pragma(msg, "unspecialized");
}

void main()
{
  foo!(0u, "+")();
}

---

This will give a false error to be ambiguous.
It happens due to unintended sharing of global state when creating dummy
expressions during partial ordering.

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

Reply via email to