Bug 20317 – Checked std.format Error: `"Attempted to access an uninitialized payload."`

Status
NEW
Severity
normal
Priority
P3
Component
phobos
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2019-10-24T17:35:20Z
Last change time
2024-12-01T16:35:55Z
Assigned to
No Owner
Creator
Ali Cehreli
Moved to GitHub: phobos#10396 →

Comments

Comment #0 by acehreli — 2019-10-24T17:35:20Z
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 by robert.schadek — 2024-12-01T16:35:55Z
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