[Issue 7633] New: Missing CTFE error message

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Mar 2 21:12:20 PST 2012


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: nobody at puremagic.com
        ReportedBy: dawg at dawgfoto.de


--- Comment #0 from dawg at dawgfoto.de 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: -------


More information about the Digitalmars-d-bugs mailing list