Issue 20317 - Checked std.format Error: `"Attempted to access an uninitialized payload."`
Summary: Checked std.format Error: `"Attempted to access an uninitialized payload."`
Status: NEW
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: x86_64 Linux
: P3 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-10-24 17:35 UTC by Ali Cehreli
Modified: 2024-12-01 16:35 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Ali Cehreli 2019-10-24 17:35:20 UTC
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."`
[...]
Comment 1 dlangBugzillaToGithub 2024-12-01 16:35:55 UTC
THIS ISSUE HAS BEEN MOVED TO GITHUB

https://github.com/dlang/phobos/issues/10396

DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB