www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 4912] New: ICE [expToCBuffer] compile-time access to non-existent AA member

reply d-bugmail puremagic.com writes:
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: nobody puremagic.com
        ReportedBy: rsinfu gmail.com


--- Comment #0 from Shin Fujishiro <rsinfu 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: -------
Sep 21 2010
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4912


Shin Fujishiro <rsinfu gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|patch                       |
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE


--- Comment #1 from Shin Fujishiro <rsinfu gmail.com> 2010-09-23 14:01:53 PDT
---
*** This issue has been marked as a duplicate of issue 4926 ***

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