Repository navigation
Toolset update: MSVC Compiler 19.53.36829, Python 3.15.0, EDG citations - #6491
Merged
Stephan T. Lavavej (StephanTLavavej) merged 61 commits intoOct 18, 2026
Merged
Stephan T. Lavavej (StephanTLavavej) merged 61 commits into
Stephan T. Lavavej (StephanTLavavej) merged 61 commits into
Conversation
They're fast, but sometimes the checkout is a little slow due to network conditions.
After recent test changes, ASan is about as fast as plain, so use 15 minutes for x64, 20 minutes for ARM64.
VSO-1665670 "`/clr` C++20 incorrectly reports `input_iterator` etc. concepts as being true for 'bad' iterators" VSO-1665674 "`/clr` C++20 has incorrect results for various ranges concepts in `P0896R4_ranges_iterator_machinery`" It turns out that `/clr` is designed to try preincrementing when postincrementing is unavailable, contrary to ISO rules. Compiler frontend dev time is limited, so instead of campaigning for a design change, we can add perma-workarounds that don't clutter up our test code too much. `/clr` and ISO C++ will behave the same if we pair each constrained postincrement (which vanishes under certain conditions) with an oppositely constrained deleted postincrement. The `= delete;` is enough to suppress the non-Standard fallback behavior.
…move perma-workaround introduced by GH 4946. Making `MoveOnlyFunctor` local is slightly nicer.
…ported followup VSO-3077350.
… reported separate VSO-3077974.
…t make the workaround permanent instead. Calling `_invoke_watson()` is better than introducing managed-to-native transitions around `__fastfail`, according to two FE devs.
This was reported as EDGcpfe/28886, fixed upstream on 2026-06-16. `<flat_set>` is C++23, which we don't yet test with CUDA, so we can remove the workarounds. `<ranges>` has C++20 code, and CUDA hasn't picked up this fix yet. Instead of waiting to remove the workarounds, I'm following the precedent set by `zip_view::_Sentinel` and introducing aliases.
This turned out to be a duplicate of DevCom-10024617 VSO-1530548 EDGcpfe/25341 "EDG: __is_constructible reports wrong value for types with conversion operator to immovable types".
…6-30, part 1: layout.
…6-30, part 2: attribute.
This was originally VSO-1956558 EDGcpfe/27056, fixed in EDG 6.8.
…zed` over `memchr`. They aren't entwined anymore.
This makes the `memchr` more readable, and increases symmetry with `_Wchar_val` where it was also extracted for clarity.
Stephan T. Lavavej (StephanTLavavej)
requested a review
from a team
as a code owner
October 16, 2026 13:05
This comment was marked as resolved.
This comment was marked as resolved.
Member
Author
|
I'm mirroring this to the MSVC-internal repo. Please notify me if any further changes are pushed, otherwise no action is required. |
…_vectorized` over `memchr`." This reverts commit 8a78356.
David Justo (davidmrdavid)
approved these changes
Oct 16, 2026
Stephan T. Lavavej (StephanTLavavej)
merged commit Oct 18, 2026
95e55c9
into
microsoft:main
48 checks passed
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
This is a big toolset update. After EDG's open-source release, S. B. Tam (@cpplearner) created #6474 to remove many EDG workarounds. Then I went through our internally reported EDG bugs, finding more workarounds to remove (ensuring that our PRs won't conflict). For the remaining bugs, I cleaned up their repros, reported them (recorded in #1621), and updated our citations. At the same time, I also found several MSVC workarounds to remove, and a few new bugs to report. Finally, I dealt with a Python 3.15 breaking change and a
memchrregression.Changelog
Commits
/clrdesign defects in<ranges>tests./clrC++20 incorrectly reportsinput_iteratoretc. concepts as being true for 'bad' iterators"/clrC++20 has incorrect results for various ranges concepts inP0896R4_ranges_iterator_machinery"/clris designed to try preincrementing when postincrementing is unavailable, contrary to ISO rules. Compiler frontend dev time is limited, so instead of campaigning for a design change, we can add perma-workarounds that don't clutter up our test code too much./clrand ISO C++ will behave the same if we pair each constrained postincrement (which vanishes under certain conditions) with an oppositely constrained deleted postincrement. The= delete;is enough to suppress the non-Standard fallback behavior.<future>: Makepackaged_taskaccept move-only functors #4946.MoveOnlyFunctorlocal is slightly nicer._invoke_watson()is better than introducing managed-to-native transitions around__fastfail, according to two FE devs.<flat_set>is C++23, which we don't yet test with CUDA, so we can remove the workarounds.<ranges>has C++20 code, and CUDA hasn't picked up this fix yet. Instead of waiting to remove the workarounds, I'm following the precedent set byzip_view::_Sentineland introducing aliases.__is_constructiblereports wrong value for types with conversion operator to immovable types".std::construct_atshould support arrays) #6487 (needs more analysis)?format specifier for strings and characters #3656 on 2023-05-18._Find_uncheckedafter reporting VSO-3080584 "memchrSIZE_MAXcorrectness regression on AMD Zen 3". This obscure optimization just isn't worth it.unreachable_sentinel_toptimization._Is_sizedin the condition._Is_sizedis always true here._Is_sizedis always true here, adjust_VECTORIZED_FINDpreprocessing accordingly.memchr._Count._Elements_are_1_bytefirst.Drop comment about preferring_Find_vectorizedovermemchr._Uchar_val.memchrmore readable, and increases symmetry with_Wchar_valwhere it was also extracted for clarity._Is_sizedanymore.memchrin ABI-retained__std_find_trivial_unsized_1.azure-devops/checkout-submodule.ps1.C:to the temp drive and avoid a lot of network access. For now, I'm not introducing that additional complexity, but extracting this script still seemed worthwhile by making it easier to test.Python 3.15 now defaults to UTF-8.
locale.getpreferredencoding(do_setlocale=False)was introduced by #2145 on 2021-08-26 when we used Python 3.9, but now Python 3.15 is changing its return value.locale.getencoding()was added in Python 3.11 and the documentation says that we can call it to get the same answer as before:Example: