Skip to content

Workaround for a bug in latest MSVC#120282

Merged
jkotas merged 1 commit intodotnet:mainfrom
jkotas:msvc-workaround
Oct 1, 2025
Merged

Workaround for a bug in latest MSVC#120282
jkotas merged 1 commit intodotnet:mainfrom
jkotas:msvc-workaround

Conversation

@jkotas
Copy link
Member

@jkotas jkotas commented Oct 1, 2025

No description provided.

Copilot AI review requested due to automatic review settings October 1, 2025 00:19
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR implements a workaround for a specific MSVC compiler bug that causes hangs during checked builds. The solution temporarily disables compiler optimizations for a specific function to avoid the problematic compilation behavior.

  • Adds compiler pragmas to disable and re-enable optimizations around the affected code section
  • Includes documentation referencing the specific Visual Studio bug report

@dotnet-policy-service
Copy link
Contributor

Tagging subscribers to this area: @hoyosjs
See info in area-owners.md if you want to be subscribed.

@jkotas jkotas enabled auto-merge (squash) October 1, 2025 01:01
@jkotas jkotas merged commit fc8c68f into dotnet:main Oct 1, 2025
99 checks passed
@jkotas jkotas deleted the msvc-workaround branch October 1, 2025 02:25
@github-actions github-actions bot locked and limited conversation to collaborators Oct 31, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants