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

2023-02-27 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23697 Iain Buclaw changed: What|Removed |Added Priority|P1 |P2 --

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

2023-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23697 --- Comment #6 from Iain Buclaw --- Missing definition of `T` in second example: ``` struct S s; int* p = &s.t.x; struct S { int a; struct T t; }; struct T { int b; int x; }; ``` --

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

2023-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23697 --- Comment #5 from Iain Buclaw --- *** Issue 23721 has been marked as a duplicate of this issue. *** --

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

2023-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23697 --- Comment #4 from Iain Buclaw --- 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 document

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

2023-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23697 --- Comment #3 from Iain Buclaw --- *** Issue 23720 has been marked as a duplicate of this issue. *** --

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

2023-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23697 Iain Buclaw changed: What|Removed |Added Component|dmd |dlang.org Summary|compilable/test22