[Issue 20643] New: printf without arguments aborts compilation

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Mar 6 10:20:13 UTC 2020


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

          Issue ID: 20643
           Summary: printf without arguments aborts compilation
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: minor
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: moonlightsentinel at disroot.org

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

--


More information about the Digitalmars-d-bugs mailing list