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

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Blocker - P1
    • 3.3.4
    • Affects Version/s: None
    • Component/s: Querying
    • None
    • Fully Compatible
    • ALL
    • Query 12 (04/04/16)
    • None
    • 0
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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]
      

              Assignee:
              Benjamin Murphy (Inactive)
              Reporter:
              Scott Hernandez (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: