https://issues.dlang.org/show_bug.cgi?id=14954
Issue ID: 14954
Summary: extern opaque struct instance doesn't compile
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P1
Component: dmd
Assignee: [email protected]
Reporter: [email protected]
Let's say I have some C headers that have code like this in:
extern struct UndeclaredStruct blah;
UndeclaredStruct *p = &blah;
which would naïvely translate to D as:
struct UndeclaredStruct;
extern(C) __gshared extern UndeclaredStruct blah;
__gshared auto p = &blah;
which doesn't compile:
Error: variable opaque.blah no definition of struct UndeclaredStruct
--