(Not tested with the latest bug fixes) struct Foo { /*static*/ struct Bar { int x; } Bar b = { x: 1 }; } int spam() { Foo f; return 0; } void main() { enum int _ = spam(); } dmd 2.042 gives (with no line of error): Error: cannot make expression out of initializer for b
The rejects-valid aspect of this bug is a duplicate of bug 3792.
https://github.com/D-Programming-Language/dmd/commit/97c73b140f1cde5d0b713eb72fd1e82084a6ac11 https://github.com/D-Programming-Language/dmd/commit/13dcf90d934325b4f37c50679e07978a821c4249
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル