-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
<atomic>
: Building a header unit with /ZI
emits warning C5260
#3287
Comments
Line 325 defines the function-local Lines 312 to 342 in 4483e87
the name of this variable should have no linkage. I smell a compiler bug. @cdacamar, do you agree? |
I concur, the compiler should not be complaining here. Put it on my tab 😉. |
<atomic>
: Importing as a header unit emits warning C5260<atomic>
: Building a header unit with /ZI
emits warning C5260
Thanks, I've updated the title to note (1) this occurs when building the header unit (not importing it) and (2) this is specific to |
Fixed by internal MSVC-PR-442426 for VS 2022 17.6 Preview 1. Thanks again for the report! |
Is there any chance to merge the fix to 17.5? We have "Treat warnings as errors" active on all of our projects, which is causing the projects to stop compiling. |
@luusl As this is only a warning, I doubt it would meet the servicing bar. (There's a pretty high requirement to backport compiler changes, since every backport risks destabilizing something else.) I recommend disabling this warning as a temporary workaround until 17.6 ships; it's a very new warning so you aren't giving up any other coverage. |
Noticed this warning while reporting some other bugs in VS 2022 17.5.0 Preview 2
The text was updated successfully, but these errors were encountered: