a.d: ---- static if(is(typeof({import typecons;}()))){ } ---- typecons.d: ---- template populate(overloads...) { mixin populate!(.contents); } public mixin populate!int; ---- With the above code, dmd segfaults when using "dmd -c a.d". While typecons.d is invalid, a.d is valid, and it should compile regardless of the validity of typecons. Note that this can probably be triggered with valid code in typecons.d as it was reduced from std.typecons.
Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/929b6cbd3f16ef20766f5c70b1cd3a759a4fd412 Issue 7178 - Segfault with import of invalid template
Commit pushed to dmd-1.x at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/6be191a149cbfc66c720846d542559e46c0c895f Issue 7178 - Segfault with import of invalid template
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル