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

Fix compile error in src/third_party/mozjs/extract/js/src/threading/ExclusiveData.h

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Server Programmability
    • Programmability 2024-11-25

      ExclusiveData implements a move constructor that both has a misspelled variable and attempts to move a Mutex, which contains a member variable that deletes its move constructor. Clang 19 is able to recognize that this issue occurs independently of the template arguments and is present in every possible template instantiation, and diagnoses the issue as an error. Since this code has compiled on older compilers, I would imagine that it just never gets instantiated with template arguments, so we may be able to just delete the move constructor to silence the issue on Clang 19.

            Assignee:
            james.bronsted@mongodb.com James Bronsted
            Reporter:
            james.bronsted@mongodb.com James Bronsted
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: