[SERVER-75669] Improve generation of initializer variables to eliminate use-after-move errors Created: 04/Apr/23  Updated: 12/Apr/23  Resolved: 11/Apr/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Matt Broadstone Assignee: Backlog - Service Architecture
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-74238 IDL Compiler Can Generate Use-After-M... Closed
Related
related to SERVER-75997 Complete TODO listed in SERVER-75669 Closed
Assigned Teams:
Service Arch
Participants:

 Description   

The IDL generator currently generates constructor initializer lists with limited knowledge of the relation of fields to one another. SERVER-75668 identified a use-after-move error wher a NamespaceString or NamespaceStringOrUUID type was used after moving it to a local variable. We should improve the methods that generate constructors and the initialization lists so we can declare the fields in the right order and prevent this class of error.


Generated at Thu Feb 08 06:30:45 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.