[Issue 22698] New: importC: no definition of struct for nested struct
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Jan 23 06:16:06 UTC 2022
https://issues.dlang.org/show_bug.cgi?id=22698
Issue ID: 22698
Summary: importC: no definition of struct for nested struct
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: dave287091 at gmail.com
nested struct declarations should be available outside of their containing
struct. For example:
// nested.c
struct Bar {
struct Foo {
int x;
} f;
};
struct Foo f = {3}; // nested.c(7): Error: variable `nested.f` no definition of
struct `Foo`
I encountered this when trying to compile sqlite with dmd.
--
More information about the Digitalmars-d-bugs
mailing list