Consider: --- pragma(msg, __traits(compiles, { import non.existent.file; })); --- Errors are gagged during sema of the import statement, but Module::read calls fatal(), causing DMD to exit without any error message being printed.
*** Issue 7400 has been marked as a duplicate of this issue. ***
Not sure that aborting without displaying an error message is technically an ICE, but it's as bad as one or worse...
DMD pull #725. https://github.com/D-Programming-Language/dmd/pull/725
Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/dd65cdc98ef51607aa030bcd5fced838b04d3954 Merge pull request #725 from kennytm/bug7399-import-too-fatal Fix bug 7399: Broken import statement in trySemantic() causes silent compiler error
Commit pushed to dmd-1.x at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/1209c9c96696876e406719cb409485a928f91469 fix Issue 7399 - Broken import statement in trySemantic() causes silent compiler error
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル