DMD bug

Eric eric at makechip.com
Sat Jun 8 11:05:15 PDT 2013


The following code will cause the compiler to crash:

import std.traits;

interface Identity(V, K) if (hasMember!(V, "k")) {
}

class Foo(K): Identity!(Foo!K, K) {
     K k;
}

void main() {
     new Foo!double;
}

This occurs on both compiler versions, 2.062 and 
v2.063-devel-53aa503.

At a minimum the compiler should print an error message instead
of seg-faulting, but I would hope that the above code would 
actually compile
successfully.

-Eric


More information about the Digitalmars-d mailing list