pragma(msg, { int[int][int] aaa; aaa[3][1] = 4; return 0; }()); This code doesn't be compiled by dmd v2.055.
The same thing can happen with dotvar or index expressions. ======================== struct S6693 { int[int] m; } static assert({ int[int][int] aaa; aaa[3][1] = 4; // AA int[int][3] aab; aab[2][1] = 4; // static array S6693 s; s.m[2] = 4; // dotvar expression return 6693; }() == 6693);
https://github.com/D-Programming-Language/dmd/commit/a48007b702870dc7f5915f8aea18f3dc3423d8f3 https://github.com/D-Programming-Language/dmd/commit/9830a15fc2873cb36a6d64980aa018ff98b7c0a7
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル