Thread overview
[Issue 22794] Compile-time format validation gives unhelpful error on too many arguments
Sep 05, 2022
Nick Treleaven
Dec 17, 2022
Iain Buclaw
Dec 17, 2022
Nick Treleaven
September 05, 2022
https://issues.dlang.org/show_bug.cgi?id=22794

Nick Treleaven <nick@geany.org> changed:

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

--- Comment #1 from Nick Treleaven <nick@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.

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=22794

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P3

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=22794

Nick Treleaven <nick@geany.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from Nick Treleaven <nick@geany.org> ---
Fixed in 2.099.1.

--