On Sat, 11 Feb 2012 12:05:24 +0100, kenji hara <[email protected]> wrote:
This is a lack of fixing bug 6208.
Now I'm creating a patch...
While this will solve the current problem, the following code will remain
broken.
The root cause is contradicting preferences for variadic templates
in deduceFunctionTemplateMatch and leastAsSpecialized.
void foo(V)(in V v)
{
}
void foo(Args...)(auto ref const Args args)
{
foo(cast(const(int))args[0]);
}
void main()
{
foo(10);
}
_______________________________________________
dmd-beta mailing list
[email protected]
http://lists.puremagic.com/mailman/listinfo/dmd-beta