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

Pessimizing moves break compile on clang 3.7+ (expression_tree.h)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker - P1
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.3.4
    • Component/s: Querying
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Sprint:
      Query 12 (04/04/16)

      Description

      Since changing src/mongo/db/matcher/expression_tree.h, we now get errors during compilation, on clang 3.7+.

      src/mongo/db/matcher/expression_tree.h:71:16: error: moving a local object in a return statement prevents copy elision [-Werror,-Wpessimizing-move]
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              benjamin.murphy Benjamin Murphy
              Reporter:
              scotthernandez Scott Hernandez
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: