http://d.puremagic.com/issues/show_bug.cgi?id=4912

           Summary: ICE [expToCBuffer] compile-time access to non-existent
                    AA member
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: ice-on-valid-code, patch
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: rsi...@gmail.com


--- Comment #0 from Shin Fujishiro <rsi...@gmail.com> 2010-09-21 17:50:36 PDT 
---
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;

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to