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

Ensure that isNamedCode variable template specializations has internal linkage

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.3.1, 4.2.2
    • Affects Version/s: None
    • Component/s: Internal Code
    • Labels:
      None
    • Fully Compatible
    • ALL
    • v4.2, v4.0
    • Security 2019-10-21

      Server artefacts compiled with Clang 9 fail to link, due to duplicate definitions of isNamedCode specializations in multiple object files. Per Clang's defect report overview, Clang 9 implements a fix for DR 2387: "Linkage of const-qualified variable template". It appears that variable template specializations now have external linkage unless explicitly marked inline. To fix compile on Clang 9, we should mark isNamedCode as inline.

            Assignee:
            spencer.jackson@mongodb.com Spencer Jackson
            Reporter:
            spencer.jackson@mongodb.com Spencer Jackson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: