Improve generation of initializer variables to eliminate use-after-move errors

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Service Arch
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            [DO NOT USE] Backlog - Service Architecture
            Reporter:
            Matt Broadstone
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: