Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug 7399: Broken import statement in trySemantic() causes silent compiler error #725

Merged
merged 1 commit into from
Feb 23, 2012
Merged

Fix bug 7399: Broken import statement in trySemantic() causes silent compiler error #725

merged 1 commit into from
Feb 23, 2012

Conversation

kennytm
Copy link
Contributor

@kennytm kennytm commented Feb 16, 2012

http://d.puremagic.com/issues/show_bug.cgi?id=7399

This patch is a hack. It make Module::read() not to call fatal() when the system is gagging, and make Module::load() return NULL when read failed. Some null-checks are introduced in several other places as a result.

Proper fix would require exceptions be enabled (by using a throw statement instead of exit(EXIT_FAILURE) in fatal()) and incorporate RAII, which would be too difficult to change at this stage.

…compiler error

This patch is a hack. It make `Module::read()` not to call `fatal()`
when the system is gagging, and make `Module::load()` return NULL when
read failed. Some null-checks are introduced in several other places as
a result.

Proper fix would require exceptions be enabled (by using a `throw`
statement instead of `exit(EXIT_FAILURE)`) and incorporate RAII, which
would be too difficult to change at this stage.
WalterBright added a commit that referenced this pull request Feb 23, 2012
Fix bug 7399: Broken import statement in trySemantic() causes silent compiler error
@WalterBright WalterBright merged commit dd65cdc into dlang:master Feb 23, 2012
braddr pushed a commit to braddr/dmd that referenced this pull request Oct 22, 2012
Fix for regression bug# 8450.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants