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

<xmemory>: _Uninitialized_copy doesn't assign, it constructs #3028

Merged
merged 2 commits into from
Aug 12, 2022

Conversation

CaseyCarter
Copy link
Member

@CaseyCarter CaseyCarter commented Aug 11, 2022

... so the memmove optimization should check _Bitcopy_constructible and not _Bitcopy_assignable.

Fixes VSO-1591034/AB#1591034, fixes VSO-1590866/AB#1590866.

Credit to StephanTLavavej for the minimal repro.

... so the `memmove` optimization should check `_Bitcopy_constructible` and not `_Bitcopy_assignable`.

Fixes VSO-1591034, fixes VSO-1590866.
@CaseyCarter CaseyCarter added the bug Something isn't working label Aug 11, 2022
@CaseyCarter CaseyCarter requested a review from a team as a code owner August 11, 2022 23:25
@StephanTLavavej StephanTLavavej self-assigned this Aug 11, 2022
@StephanTLavavej
Copy link
Member

I'm mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed.

@StephanTLavavej StephanTLavavej merged commit b812b0e into microsoft:main Aug 12, 2022
@StephanTLavavej
Copy link
Member

Thanks for investigating and fixing this bug! 🐞 🕵️ 🛠️

@CaseyCarter CaseyCarter deleted the uninit_copy-fix branch August 12, 2022 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants