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

D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 7399 - Broken import statement in trySemantic() causes silent compiler error
Summary: Broken import statement in trySemantic() causes silent compiler error
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P2 normal
Assignee: No Owner
URL:
Keywords: ice, pull, rejects-valid
: 7400 (view as issue list)
Depends on:
Blocks:
Reported: 2012年01月30日 08:40 UTC by David Nadlinger
Modified: 2012年02月23日 13:10 UTC (History)
4 users (show)

See Also:


Attachments
Add an attachment (proposed patch, testcase, etc.)

Note You need to log in before you can comment on or make changes to this issue.
Description David Nadlinger 2012年01月30日 08:40:40 UTC
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 David Nadlinger 2012年01月30日 08:47:44 UTC
*** Issue 7400 has been marked as a duplicate of this issue. ***
Comment 2 Stewart Gordon 2012年02月12日 11:02:22 UTC
Not sure that aborting without displaying an error message is technically an ICE, but it's as bad as one or worse...
Comment 3 kennytm 2012年02月16日 06:30:32 UTC
DMD pull #725.
https://github.com/D-Programming-Language/dmd/pull/725 
Comment 4 github-bugzilla 2012年02月23日 12:35:47 UTC
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 github-bugzilla 2012年02月23日 13:09:23 UTC
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 によって変換されたページ (->オリジナル) /