struct BB { Item[1] aa; //struct tmp.Item no size yet for forward reference } struct CC { Item aa; //ok } struct Item { byte data; }
Here's a patch that simply invokes the semantics of the forward referenced struct. Index: struct.c =================================================================== --- struct.c (revision 421) +++ struct.c (working copy) @@ -115,6 +115,8 @@ //printf("AggregateDeclaration::size() = %d\n", structsize); if (!members) error(loc, "unknown size"); + if (sizeok != 1 && scope) + semantic(NULL); if (sizeok != 1) { error(loc, "no size yet for forward reference"); //*(char*)0=0; This patch also fixes #2654
changeset 429
This is fixed in v2.046 and v1.061.
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル