[Issue 23809] New: Adding to associative array inside Variant segfaults

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Mar 25 07:44:37 UTC 2023


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

          Issue ID: 23809
           Summary: Adding to associative array inside Variant segfaults
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: phobos
          Assignee: nobody at puremagic.com
          Reporter: acehreli at yahoo.com

Found at:

 https://forum.dlang.org/post/dekeczwolflkjwauftxl@forum.dlang.org

The following program segfaults:

import std.variant;

void main()
{
  Variant variant = Variant([
    "one": Variant(1),
  ]);

  variant["four"] = Variant(4); // Segfault
}

--


More information about the Digitalmars-d-bugs mailing list