[Issue 22512] New: importC: incomplete array type must have initializer

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Nov 14 18:31:44 UTC 2021


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

          Issue ID: 22512
           Summary: importC: incomplete array type must have initializer
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: dave287091 at gmail.com

The following fails to compile:

// test.c
extern char *tzname[];

test.c(2): Error: variable `test.tzname` incomplete array type must have
initializer


This pattern appears in stdio.h and time.h on macOS.

--


More information about the Digitalmars-d-bugs mailing list