[Issue 6701] New: template specialization resolution failure
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Sep 20 11:11:00 PDT 2011
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: nobody at puremagic.com
ReportedBy: dawg at dawgfoto.de
--- Comment #0 from dawg at 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: -------
More information about the Digitalmars-d-bugs
mailing list