http://d.puremagic.com/issues/show_bug.cgi?id=7633
Summary: Missing CTFE error message
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Keywords: CTFE
Severity: normal
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from [email protected] 2012-03-02 21:12:18 PST ---
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.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------