[Issue 8673] New: enum z = [0][(()=>$-1)()]; crashes the compiler
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Sep 16 18:36:48 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8673
Summary: enum z = [0][(()=>$-1)()]; crashes the compiler
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: timon.gehr at gmx.ch
--- Comment #0 from timon.gehr at gmx.ch 2012-09-16 18:37:37 PDT ---
DMD 2.060
enum z = [0][(()=>$-1)()];
dmd: interpret.c:153: void CtfeStack::saveGlobalConstant(VarDeclaration*,
Expression*): Assertion `v->init && (v->isConst() || v->isImmutable()) &&
!v->isCTFE()' failed.
--
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