Summary: [CTFE] typeid() should be supported in CTFE
           Product: D
           Version: D1 & D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from Don <> 2011-12-21 05:38:27 PST ---
static assert({
    TypeInfo xxx = typeid(Object);
    TypeInfo yyy = typeid(new Error("xxx"));
    return true;

The first typeid gives:
bug.d(7): Error: Cannot interpret & D17TypeInfo_C6Object6__initZ at compile

The second one gives:

bug.d(38): Error: dereference of invalid pointer

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to