www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 22512] New: importC: incomplete array type must have

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 puremagic.com
          Reporter: dave287091 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.

--
Nov 14 2021