We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97a42c5 commit e049ce7Copy full SHA for e049ce7
spec/importc.dd
@@ -423,6 +423,19 @@ int myprintf(char *, ...) asm("printf");
423
$(P Any declarations in scope can be accessed, not just
424
declarations that lexically precede a reference.)
425
426
+$(CCODE
427
+Ta *p; // Ta is forward referenced
428
+struct Sa { int x; };
429
+typedef struct Sa Ta; // Ta is defined
430
+)
431
+
432
433
+struct S s;
434
+int* p = &s.t.x; // struct S definition is forward referenced
435
+struct S { int a; struct T t; }; // T still forward referenced
436
+struct T { int b; int x; }; // definition of struct T
437
438
439
$(H3 $(LNAME2 cpp-tag-symbols, C++ Style Tag Symbols))
440
441
$(P In C++, `struct`, `union` or `enum` tag symbols can be accessed without needing
0 commit comments