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

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sat Oct 3 06:41:55 PDT 2015


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

Marc Schütz <schuetzm at gmx.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 OS|Windows                     |All

--- Comment #4 from Marc Schütz <schuetzm at gmx.net> ---
Thanks, I can reproduce it now. Works in 2.068.1, broken in 2.068.2 and master.

dub.sdl:
name "aaa"
description "A minimal D application."
copyright "Copyright © 2015, marc"
authors "marc"
dependency "std_data_json" version="~>0.17.0"

source/app.d:
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]);
}

# dub test --force
core.exception.AssertError at dtemplate.d(6389): Assertion failure

Digger points to this PR:
https://github.com/D-Programming-Language/dmd/pull/5055

--


More information about the Digitalmars-d-bugs mailing list