[Issue 7147] [CTFE] typeid() should be supported in CTFE
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Aug 15 23:15:46 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=7147
Rainer Schuetze <r.sagitario at gmx.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |r.sagitario at gmx.de
--- Comment #3 from Rainer Schuetze <r.sagitario at gmx.de> 2013-08-15 23:15:45 PDT ---
This code now raises an ICE:
struct S { }
static assert(typeid(S).init.length > 0);
Assertion failure: 'thisval && thisval->op == TOKclassreference' on line 4067
in file 'interpret.c'
If you use a class instead:
class C {}
static assert(typeid(C).init.length > 0);
imp.d(2): Error: static assert (& D16TypeInfo_C3imp1C6__initZ.init.length >
0u) is not evaluatable at compile time
--
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