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: [email protected]
Reporter: [email protected]
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
--