Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-75669

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

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

      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:
            backlog-server-servicearch [DO NOT USE] Backlog - Service Architecture
            Reporter:
            matt.broadstone@mongodb.com Matt Broadstone
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: