Skip to content

Fix compile error in RedBlackTree caused by the presence of a move constructor #10810

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

Merged

Conversation

s-ludwig
Copy link
Member

@s-ludwig s-ludwig commented Jun 28, 2025

The implicitly defined move constructor of RBNode shadows the otherwise implicitly defined per-field struct constructor. This could also be considered a language regression, but the fix here is pretty simple and shouldn't otherwise have negative consequences.

Fixes #10811.

@s-ludwig s-ludwig requested a review from PetarKirov as a code owner June 28, 2025 13:50
@dlang-bot
Copy link
Contributor

dlang-bot commented Jun 28, 2025

Thanks for your pull request, @s-ludwig!

Bugzilla references

Your PR doesn't reference any Bugzilla issue.

If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog.

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 + phobos#10810"

@s-ludwig s-ludwig force-pushed the fix_redblacktree_move_constructor branch from 417af77 to 5020469 Compare June 28, 2025 13:58
@s-ludwig s-ludwig force-pushed the fix_redblacktree_move_constructor branch from 5020469 to a972a96 Compare June 28, 2025 19:31
@s-ludwig s-ludwig requested a review from CyberShadow as a code owner June 28, 2025 19:31
@s-ludwig s-ludwig changed the base branch from master to stable June 28, 2025 19:31
@s-ludwig
Copy link
Member Author

Re-targeted to stable.

@thewilsonator
Copy link
Contributor

Thanks, could create an issue for this (or link if one already exists).

@s-ludwig
Copy link
Member Author

Done.

@thewilsonator thewilsonator merged commit 5125f2e into dlang:stable Jun 29, 2025
3 checks passed
@s-ludwig s-ludwig deleted the fix_redblacktree_move_constructor branch June 29, 2025 09:02
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.

[REG2.111.0] RedBlackTree compile error for structs with move constructor
3 participants