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.
https://github.com/D-Programming-Language/dmd/pull/806
Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/a4369d5d9b34389ae673874ba986e64783aab5e1 Merge pull request #806 from donc/ctfe7633equalmsg Fix issue 7633 - Missing CTFE error message
Commit pushed to dmd-1.x at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/06b384b15322b23fc62ba398d4eb76937965cf18 merge D2 pull 806 fix Issue 7633