[Issue 15138] New: ICE with basic use of stdx.data.json

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Oct 2 08:07:57 PDT 2015


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

          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 at puremagic.com
          Reporter: monkeyworks12 at 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: 

https://github.com/s-ludwig/std_data_json

--


More information about the Digitalmars-d-bugs mailing list