class Base {}
bool equal(Base a, Base b)
{
Base[Base] aa;
aa[a] = b;
aa[b] = a;
return true;
}
enum eq = equal(new Base, new Base);
--------
This will only print a backtrace but nothing about the cause of the error.
bug2.d(11): called from here: equal(new Base,new Base)
bug2.d(11): called from here: equal(new Base,new Base)
The cause for this to fail is that Equal for classes doesn't work.