← Back to index
|
Original Bugzilla link
Bug 4912 – ICE [expToCBuffer] compile-time access to non-existent AA member
Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2010-09-21T17:50:00Z
Last change time
2010-09-23T14:01:53Z
Keywords
ice-on-valid-code
Assigned to
nobody
Creator
rsinfu
Comments
Comment #0
by rsinfu — 2010-09-21T17:50:36Z
Yet another PREC_zero assertion failure in expToCBuffer(). enum aa = [ "zero": 0 ]; static assert(aa["one"] == 1); % dmd -o- -c test.d Assertion failed: (precedence[e->op] != PREC_zero), function expToCBuffer, file expression.c, line 816. Patch against dmd r680: ==================== diff --git src/parse.c src/parse.c index 61b1c2a..4800474 100644 --- src/parse.c +++ src/parse.c @@ -6273,6 +6273,7 @@ void initPrecedence() precedence[TOKnull] = PREC_primary; precedence[TOKstring] = PREC_primary; precedence[TOKarrayliteral] = PREC_primary; + precedence[TOKassocarrayliteral] = PREC_primary; precedence[TOKtypeid] = PREC_primary; precedence[TOKis] = PREC_primary; precedence[TOKassert] = PREC_primary;
Comment #1
by rsinfu — 2010-09-23T14:01:53Z
*** This issue has been marked as a duplicate of issue 4926 ***