[Issue 22794] Compile-time format validation gives unhelpful error on too many arguments

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Sep 5 17:25:22 UTC 2022


https://issues.dlang.org/show_bug.cgi?id=22794

Nick Treleaven <nick at geany.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nick at geany.org

--- Comment #1 from Nick Treleaven <nick at geany.org> ---
run.dlang.io gives:

/dlang/dmd/linux/bin64/../../src/phobos/std/stdio.d(4432): Error: static
assert:  "Orphan format arguments: args[1..2]"
onlineapp.d(5):        instantiated from here: `writefln!("%s", string,
string)`

I also get that with dmd v2.100.2-beta.1-dirty.

--


More information about the Digitalmars-d-bugs mailing list