Bug 21529 – Missing format arguments are not detected at compile time

Status
RESOLVED
Resolution
DUPLICATE
Severity
enhancement
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2021-01-08T14:47:18Z
Last change time
2021-03-27T19:48:48Z
Assigned to
No Owner
Creator
Witold Baryluk

Comments

Comment #0 by witold.baryluk+d — 2021-01-08T14:47:18Z
This code should not compile, but it does: void main() { import std.stdio; const int a = 512; const double b = 123.0 / a; writefln!"%s %f %f"(a, 100.0 / b); } https://godbolt.org/z/j6qszx
Comment #1 by bugzilla — 2021-03-27T19:48:48Z
*** This issue has been marked as a duplicate of issue 17381 ***