DMD correctly reports the missing arguments but aborts compilation because of an "unknown error": ------------------------ extern(C) int printf(const char*, ...); shared static ~this() { printf("count = %lu\n"); } ------------------------- test.d(5): Deprecation: more format specifiers than 0 arguments Error: unknown, please file report on issues.dlang.org
@Luhrel created dlang/dmd pull request #10921 "Issue 20643 - printf without arguments aborts compilation" mentioning this issue: - Issue 20643 - printf without arguments aborts compilation https://github.com/dlang/dmd/pull/10921
dlang/dmd pull request #10921 "Fix Issue 20643 - printf without arguments aborts compilation" was merged into master: - 16acede2d0182f3a49d2061236ff095f3e7739df by Luhrel: Issue 20643 - printf without arguments aborts compilation https://github.com/dlang/dmd/pull/10921