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

Report most-vexing parse warnings as errors on MSVC

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 3.0.1
    • Fix Version/s: 3.0.5, 3.1.0
    • Component/s: Build
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Backport Completed:

      Description

      The version of the most-vexing parse where the developer inadvertently declares a function instead of defining a variable can cause lock acquisitions to be missed, and other RAII behavior to not occur. MSVC has a warning about these, which we should report as build errors.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: