Bug 7399 – Broken import statement in trySemantic() causes silent compiler error

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-01-30T08:40:00Z
Last change time
2012-02-23T13:10:11Z
Keywords
ice, pull, rejects-valid
Assigned to
nobody
Creator
code

Comments

Comment #0 by code — 2012-01-30T08:40:40Z
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.
Comment #1 by code — 2012-01-30T08:47:44Z
*** Issue 7400 has been marked as a duplicate of this issue. ***
Comment #2 by smjg — 2012-02-12T11:02:22Z
Not sure that aborting without displaying an error message is technically an ICE, but it's as bad as one or worse...
Comment #3 by kennytm — 2012-02-16T06:30:32Z
Comment #4 by github-bugzilla — 2012-02-23T12:35:47Z
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
Comment #5 by github-bugzilla — 2012-02-23T13:09:23Z
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