[Issue 7147] New: [CTFE] typeid() should be supported in CTFE
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Wed Dec 21 05:38:29 PST 2011
    
    
  
http://d.puremagic.com/issues/show_bug.cgi?id=7147
           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
        AssignedTo: nobody at puremagic.com
        ReportedBy: clugdbug at yahoo.com.au
--- Comment #0 from Don <clugdbug at yahoo.com.au> 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
time
The second one gives:
bug.d(38): Error: dereference of invalid pointer
'Error("xxx",null,0u,null,null,null)'
-- 
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