Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Checked std.format Error: "Attempted to access an uninitialized payload." #10396

Open
dlangBugzillaToGithub opened this issue Oct 24, 2019 · 0 comments
Labels
Arch:x86_64 Issues specific to x86_64 OS:Linux Issues specific to Linux Severity:Normal

Comments

@dlangBugzillaToGithub
Copy link

acehreli (@acehreli) reported this on 2019-10-24T17:35:20Z

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

Description

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."`
[...]
@LightBender LightBender removed the P3 label Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Arch:x86_64 Issues specific to x86_64 OS:Linux Issues specific to Linux Severity:Normal
Projects
None yet
Development

No branches or pull requests

2 participants