[Issue 23697] ImportC: No examples of invalid forward references in C code accepted by ImportC

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Feb 20 12:38:58 UTC 2023


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

--- Comment #4 from Iain Buclaw <ibuclaw at gdcproject.org> ---
Another example of forward reference code that is accepted by ImportC, rejected
by standard C.

```
struct S s;
int* p = &s.t.x;
struct S { int a; struct T t; };
```

Giving both as examples on the ImportC documentation page would be good enough.

--


More information about the Digitalmars-d-bugs mailing list