Bug 20643 – printf without arguments aborts compilation

Status
RESOLVED
Resolution
FIXED
Severity
minor
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2020-03-06T10:20:13Z
Last change time
2020-04-14T15:28:42Z
Assigned to
No Owner
Creator
moonlightsentinel

Comments

Comment #0 by moonlightsentinel — 2020-03-06T10:20:13Z
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
Comment #1 by dlang-bot — 2020-03-14T20:12:17Z
@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
Comment #2 by dlang-bot — 2020-03-16T00:14:18Z
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