[Issue 20317] New: Checked std.format Error: `"Attempted to access an uninitialized payload."`

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Oct 24 17:35:20 UTC 2019


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

          Issue ID: 20317
           Summary: Checked std.format Error: `"Attempted to access an
                    uninitialized payload."`
           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

import std.stdio;
import std.string;

void main() {
  auto lines = File("foo").byLine;
  auto result = format!"%s"(lines);
}

The compilation fails with

/usr/include/dmd/phobos/std/typecons.d(6455): Error: `"Attempted to access an
uninitialized payload."`
[...]

--


More information about the Digitalmars-d-bugs mailing list