Skip to content

Toolset update: MSVC Compiler 19.53.36829, Python 3.15.0, EDG citations - #6491

Merged
Stephan T. Lavavej (StephanTLavavej) merged 61 commits into
microsoft:mainfrom
StephanTLavavej:next-toolset-update
Oct 18, 2026
Merged

Stephan T. Lavavej (StephanTLavavej) merged 61 commits into
microsoft:mainfrom
StephanTLavavej:next-toolset-update

Conversation

@StephanTLavavej

@StephanTLavavej Stephan T. Lavavej (StephanTLavavej) commented Oct 16, 2026 •

Copy link
Copy Markdown
Member

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

Changelog

  • Code cleanups:
    • Removed compiler bug workarounds.
  • Infrastructure improvements:
    • Updated dependencies.
      • Updated MSVC Compiler to 19.53.36829 (now required).
      • Updated Python to 3.15.0 (now required).
      • Updated CUDA to 13.4.3.
      • Updated Google Benchmark to 1.10.0.

Commits

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:

This function is similar to getpreferredencoding(False) except this function ignores the Python UTF-8 Mode.

Example:

Python 3.14.8 (tags/v3.14.8:8e6e75d, Sep 30 2026, 18:19:33) [MSC v.1944 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import locale
>>> locale.getpreferredencoding(do_setlocale=False)
'cp1252'
>>> locale.getencoding()
'cp1252'
Python 3.15.0 (tags/v3.15.0:d220409, Oct  9 2026, 11:55:56) [MSC v.1951 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import locale
>>> locale.getpreferredencoding(do_setlocale=False)
'utf-8'
>>> locale.getencoding()
'cp1252'

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.
…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".
This was originally VSO-1956558 EDGcpfe/27056, fixed in EDG 6.8.
Copilot AI balanced review requested due to automatic review settings October 16, 2026 13:05
@StephanTLavavej Stephan T. Lavavej (StephanTLavavej) added the infrastructure Related to repository automation label Oct 16, 2026
@github-project-automation github-project-automation Bot moved this to Initial Review in STL Code Reviews Oct 16, 2026
@azure-pipelines

This comment was marked as resolved.

This comment was marked as resolved.

@StephanTLavavej

Copy link
Copy Markdown
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.

Comment thread stl/inc/xutility Resolved
…_vectorized` over `memchr`."

This reverts commit 8a78356.
Copilot AI balanced review requested due to automatic review settings October 16, 2026 19:47

This comment was marked as resolved.

Comment thread azure-devops/checkout-submodule.ps1 Resolved
@StephanTLavavej Stephan T. Lavavej (StephanTLavavej) moved this from Final Review to Merging in STL Code Reviews Oct 17, 2026
@StephanTLavavej
Stephan T. Lavavej (StephanTLavavej) merged commit 95e55c9 into microsoft:main Oct 18, 2026
48 checks passed
@github-project-automation github-project-automation Bot moved this from Merging to Done in STL Code Reviews Oct 18, 2026
@StephanTLavavej
Stephan T. Lavavej (StephanTLavavej) deleted the next-toolset-update branch October 18, 2026 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

infrastructure Related to repository automation

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants