dmd 2.054 segfaults

d coder dlang.coder at gmail.com
Tue Jul 12 09:36:41 PDT 2011


>
>
> import std.stdio;
> struct Foo(IF, size_t N) { }
> interface Bar { }
> void main() {
>   void printFoo(T: Foo!(IF, N), IF, size_t N)(T foo)
>     if(is(IF == interface)) {
>     writeln("Type: ", T.stringof);
>   }
>   Foo!(Bar, 1) foo;
>   printFoo(foo);
> }
>
>

Just tried and found that it works just fine with 2.053. If somebody
provides a patch for 2.054, I will be happy to test on my bigger use cases.
:-)

Regards
- Puneet
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20110712/97fe1b59/attachment.html>


More information about the Digitalmars-d mailing list