www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 15138] New: ICE with basic use of stdx.data.json


          Issue ID: 15138
           Summary: ICE with basic use of stdx.data.json
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Windows
            Status: NEW
          Severity: regression
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: monkeyworks12 hotmail.com

The following code:

import stdx.data.json;

void main()
  string str = `{"a": true, "b": "test"}`;
  auto v = parseJSONValue(str);

  // The following line causes the problem in 2.068.2
  auto obj = v.get!(JSONValue[string]);

Fails to compile with the following error:

Assertion failure: 'minst->isRoot() || minst->rootImports()' on line 8013 in
file 'template.c'

stdx.data.json can be found here: 


Oct 02 2015