[dmd-beta] D2 2.058 beta
Martin Nowak
dawg at dawgfoto.de
Sat Feb 11 03:31:04 PST 2012
On Sat, 11 Feb 2012 12:05:24 +0100, kenji hara <k.hara.pg at gmail.com> 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);
}
More information about the dmd-beta
mailing list