Skip to content

Fix Issues 23951 and 23279 - traits(hasMember) does not follow alias this + ICE when using traits(hasMember) on an erroneous member - #15406

Merged
dkorpel merged 2 commits into
dlang:stablefrom
RazvanN7:Issue23951
Jul 14, 2023

Conversation

@RazvanN7

Copy link
Copy Markdown
Contributor

No description provided.

@dlang-bot

dlang-bot commented Jul 12, 2023 •

Copy link
Copy Markdown

Thanks for your pull request and interest in making D better, @RazvanN7! 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
✓ 23279 critical Segmentation fault on mixin template + using unknown type
✓ 23951 major "alias this" not properly dereferenced when the object being looked up is a field of a type

Testing this PR locally

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

dub run digger -- build "stable + dmd#15406"

@RazvanN7
RazvanN7 changed the base branch from master to stable July 12, 2023 14:42
@RazvanN7 RazvanN7 changed the title Fix Issue 23951 - traits(getMember) does not follow alias this Fix Issues 23951 and 23279 - traits(hasMember) does not follow alias this + ICE when using traits(hasMember) on an erroneous member Jul 13, 2023

@ghost ghost left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

That solution is better than the one previously tried.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants