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 issue 11856 - segfault with circular template constraints #10205

Merged
merged 1 commit into from Jul 21, 2019
Merged

fix issue 11856 - segfault with circular template constraints #10205

merged 1 commit into from Jul 21, 2019

Conversation

ghost
Copy link

@ghost ghost commented Jul 21, 2019

The problem is fixed by adding an inuse flag, like existing for declarations and templates. Memory usage won't be affected because Expression size was already not divisible by the platform alignment.

@dlang-bot
Copy link
Contributor

Thanks for your pull request and interest in making D better, @Basile-z! We are looking forward to reviewing it, and you should be hearing from a maintainer soon.
Please verify that your PR follows this checklist:

  • My PR is fully covered with tests (you can see the coverage diff by visiting the details link of the codecov check)
  • My PR is as minimal as possible (smaller, focused PRs are easier to review than big ones)
  • I have provided a detailed rationale explaining my changes
  • New or modified functions have Ddoc comments (with Params: and Returns:)

Please see CONTRIBUTING.md for more information.


If you have addressed all reviews or aren't sure how to proceed, don't hesitate to ping us with a simple comment.

Bugzilla references

Auto-close Bugzilla Severity Description
11856 normal DMD segfault with circular template constraints

Testing this PR locally

If you don't have a local development environment setup, you can use Digger to test this PR:

dub fetch digger
dub run digger -- build "stable + dmd#10205"

@dlang-bot dlang-bot merged commit e845220 into dlang:stable Jul 21, 2019
@ghost ghost deleted the issue-11856 branch July 21, 2019 11:59
@@ -642,6 +642,7 @@ extern (C++) abstract class Expression : ASTNode
ubyte parens; // if this is a parenthesized expression
Type type; // !=null means that semantic() has been run
Loc loc; // file location
ubyte inuse; // detect expressionSemantic() loops
Copy link
Member

Choose a reason for hiding this comment

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

Please open a PR to update the .h file.

Copy link
Author

Choose a reason for hiding this comment

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

damn again... yes coming soon

dlang-bot added a commit that referenced this pull request Jul 21, 2019
add missing c++ headers change from #10205
merged-on-behalf-of: Petar Kirov <ZombineDev@users.noreply.github.com>
wilzbach pushed a commit to wilzbach/dmd that referenced this pull request Jul 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants