digitalmars.D.bugs - [Issue 22698] New: importC: no definition of struct for nested struct
- d-bugmail puremagic.com (25/25) Jan 22 2022 https://issues.dlang.org/show_bug.cgi?id=22698
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 puremagic.com Reporter: dave287091 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. --
Jan 22 2022