OK when compiled normally, but when compiled with -O, generates: interpret.d(2367): Error: variable Q used before set -------- void bug() { enum int Q=0; string [2] s = ["a", "b"]; assert(s[Q].dup=="a"); }
This bug does affect D1, but in different ways.
Fixed dmd 1.047 and 2.032
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル