import std.stdio; void main() { typedef void* HANDLE; HANDLE hnd; write(hnd); } D:\DMD\dmd2\windows\bin\..\..\src\phobos\std\format.d(1599): Error: function std.format.formatValue!(LockingTextWriter,HANDLE,immutable(char)).formatValue is deprecated D:\DMD\dmd2\windows\bin\..\..\src\phobos\std\format.d(308): Error: template instance std.format.formatGeneric!(LockingTextWriter,HANDLE,immutable(char)) error instantiating D:\DMD\dmd2\windows\bin\..\..\src\phobos\std\stdio.d(660): instantiated from here: formattedWrite!(LockingTextWriter,immutable(char),HANDLE) D:\DMD\dmd2\windows\bin\..\..\src\phobos\std\stdio.d(1433): instantiated from here: write!(HANDLE) test2.d(6): instantiated from here: write!(HANDLE) This will compile with the -d switch.
*** Issue 5772 has been marked as a duplicate of this issue. ***
https://github.com/D-Programming-Language/phobos/pull/225 https://github.com/D-Programming-Language/phobos/commit/711f7e2e84d7cbb7a643db70f041868f555d5300