D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 7633 - Missing CTFE error message
Summary: Missing CTFE error message
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P2 normal
Assignee: No Owner
URL:
Keywords: CTFE
Depends on:
Blocks:
 
Reported: 2012-03-02 21:12 UTC by Martin Nowak
Modified: 2012-03-14 17:29 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Martin Nowak 2012-03-02 21:12:18 UTC
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 2 github-bugzilla 2012-03-14 16:59:52 UTC
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