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

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

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

      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 Benjamin Murphy
            Reporter:
            scotthernandez Scott Hernandez (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: