Skip to content

fix issue 11856 - segfault with circular template constraints#10205

Merged
dlang-bot merged 1 commit intostablefrom
unknown repository
Jul 21, 2019
Merged

fix issue 11856 - segfault with circular template constraints#10205
dlang-bot merged 1 commit intostablefrom
unknown repository

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
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.

3 participants