[SERVER-62480] Fix future_test files in MSVC 2022 under C++20 Created: 10/Jan/22 Updated: 29/Oct/23 Resolved: 13/Jan/22 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 5.3.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Billy Donahue | Assignee: | Billy Donahue |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||||||||||
| Operating System: | ALL | ||||||||||||||||||||||||
| Sprint: | Service Arch 2022-1-24 | ||||||||||||||||||||||||
| Participants: | |||||||||||||||||||||||||
| Linked BF Score: | 70 | ||||||||||||||||||||||||
| Description |
|
figure out what's wrong with MSVC 2022 in C++20 mode. |
| Comments |
| Comment by Billy Donahue [ 13/Jan/22 ] | |||||||||||||||||||||
|
Fortunately Microsoft is already investigating this issue. https://developercommunity.visualstudio.com/t/lambda-call-triggers-C2440-with-VS1700/1556925 | |||||||||||||||||||||
| Comment by Billy Donahue [ 13/Jan/22 ] | |||||||||||||||||||||
|
Minimal Repro:
lambda_bug.cpp:
Result:
| |||||||||||||||||||||
| Comment by Billy Donahue [ 13/Jan/22 ] | |||||||||||||||||||||
|
Reopening to spend a little time on getting a minimal repro so we can report this upstream. | |||||||||||||||||||||
| Comment by Githook User [ 13/Jan/22 ] | |||||||||||||||||||||
|
Author: {'name': 'Billy Donahue', 'email': 'billy.donahue@mongodb.com', 'username': 'BillyDonahue'}Message: Revert " | |||||||||||||||||||||
| Comment by Githook User [ 13/Jan/22 ] | |||||||||||||||||||||
|
Author: {'name': 'Billy Donahue', 'email': 'billy.donahue@mongodb.com', 'username': 'BillyDonahue'}Message: |