Bug 7633 – Missing CTFE error message

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-03-02T21:12:00Z
Last change time
2012-03-14T17:29:02Z
Keywords
CTFE
Assigned to
nobody
Creator
code

Comments

Comment #0 by code — 2012-03-02T21:12:18Z
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.
Comment #1 by clugdbug — 2012-03-13T05:11:21Z
Comment #2 by github-bugzilla — 2012-03-14T16:59:52Z
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
Comment #3 by github-bugzilla — 2012-03-14T17:28:47Z