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: nob...@puremagic.com ReportedBy: clugd...@yahoo.com.au --- Comment #0 from Don <clugd...@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: -------