Unjustified conflict ( I guess ^^ )

funog funog at ifrance.com
Wed Dec 19 00:34:55 PST 2007


I have posted this one on digitalmars.D.bugs, but somehow I feel it wasn't the right place ... dmd1.023 ( can't try with 1.024 or 2.008 as I don't have glibc 2.4 ... it's really sad I can't try the new const/invariant :( ) doesn't compile :


void foo(T)(out T[] p)
{
        //...
}

void foo(out int p)
{
        //...
}


test.d(7): function test.foo conflicts with template test.foo(T) at test.d(2)


I can't see a conflict ... Am I missing something ?



More information about the Digitalmars-d mailing list