https://issues.dlang.org/show_bug.cgi?id=16676
Issue ID: 16676
Summary: [REG2.072.0] std.format fails with %02d in dstring
format string
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: regression
Priority: P1
Component: phobos
Assignee: [email protected]
Reporter: [email protected]
//////////////// test.d ///////////////
import std.string;
void main()
{
assert("%02d"d.format(1) == "01"d);
}
///////////////////////////////////////
Code throws "Incorrect format specifier: 02d" exception at runtime.
Introduced in https://github.com/D-Programming-Language/phobos/pull/4427.
--