www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 14325] New: [CTFE] Comparison of AAs makes wrong result

https://issues.dlang.org/show_bug.cgi?id=14325

          Issue ID: 14325
           Summary: [CTFE] Comparison of AAs makes wrong result
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Keywords: CTFE, wrong-code
          Severity: normal
          Priority: P1
         Component: DMD
          Assignee: nobody puremagic.com
          Reporter: k.hara.pg gmail.com

Issue cases:

static assert([1: 1] != [1: 2, 2: 1]);     // OK
static assert([1: 1] != [1: 2]);           // OK
static assert([1: 1] != [2: 1]);           // Error!
static assert([1: 1, 2:2] != [3: 3, 4:4]); // Error!

--
Mar 24 2015