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

[REG2.066] Issue 15733 - Forward reference issue involving inheritance #5516

Merged
merged 1 commit into from
Mar 19, 2016

Conversation

9rnsr
Copy link
Contributor

@9rnsr 9rnsr commented Mar 10, 2016

No description provided.

@dlang-bot
Copy link
Contributor

Fix Bugzilla Description
15733 [REG2.066] Forward reference issue involving inheritance

scx.setNoFree();
}
_scope = scx;
scope (exit) _scope = null;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using scope exit involves creating an exception handling frame. However, none of dmd throws exceptions, making this inefficient. Just set _scope to null after the call to exp().

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, fixed.

@9rnsr 9rnsr force-pushed the fix15733 branch 2 times, most recently from 473e414 to f1babec Compare March 12, 2016 10:58
@WalterBright
Copy link
Member

Auto-merge toggled on

@9rnsr
Copy link
Contributor Author

9rnsr commented Mar 19, 2016

Thanks, but the auto-merge is currently blocked by the red of Phobos unittest in stable branch.
See also: dlang/phobos#4092

WalterBright added a commit that referenced this pull request Mar 19, 2016
[REG2.066] Issue 15733 - Forward reference issue involving inheritance
@WalterBright WalterBright merged commit 5264c96 into dlang:stable Mar 19, 2016
@9rnsr 9rnsr deleted the fix15733 branch March 19, 2016 10:07
tramker added a commit to tramker/dmd that referenced this pull request Sep 17, 2016
[REG2.066] Issue 15733 - Forward reference issue involving inheritance
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.

3 participants