[Issue 2260] Template uniqueness not valid anymore from 1.031 to 1.033

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Dec 30 02:27:47 PST 2008


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





------- Comment #2 from walter at mail.math.uni-magdeburg.de  2008-12-30 04:27 -------
import tango.io.Stdout;

class inner (alias F) { }

template outer(alias B)
{
  void function( inner!(B) ) outer;
}

template rawmanglednameof(alias A)
{
  const char[] rawmanglednameof = typeof(&outer!(A)).mangleof;
}

void func (int i, out int j, ref int k, lazy int m, ...)
{

}

int main (char[][] args)
{
        Stdout.formatln ("{}", rawmanglednameof !(func));
        Stdout.formatln ("{}", rawmanglednameof !(args));       

        return 0;
}

Okay, this one compiles with Tango. For Phobos you can just replace the
Stdout.formatln by its writefln equivalent. The bug is not library dependent.


-- 



More information about the Digitalmars-d-bugs mailing list