<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - clang-cl fails to dllexport explicit specialization of member function"
   href="https://bugs.llvm.org/show_bug.cgi?id=48161">48161</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>clang-cl fails to dllexport explicit specialization of member function
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>-New Bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>hans@chromium.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org, neeilans@live.com, richard-llvm@metafoo.co.uk
          </td>
        </tr>

        <tr>
          <th>Blocks</th>
          <td>13707
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Consider:

template <typename T> struct S {
  void __declspec(dllexport) f() {}
};
template <> void S<int>::f() {};


MSVC exports S<int>::f(), but clang-cl doesn't.

(If the dllexport attribute is on the class, clang-cl handles it; <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - clang-cl fails to dllexport specialization of class template member function when the class template is dllexport"
   href="show_bug.cgi?id=34849">Bug 34849</a>.
However in this case, the attribute is never propagated from the template to
the specialization.)</pre>
        </div>
      </p>

        <div id="referenced">
          <hr style="border: 1px dashed #969696">
          <b>Referenced Bugs:</b>
          <ul>
              <li>
                [<a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [meta] VCPP compatibility issues"
   href="https://bugs.llvm.org/show_bug.cgi?id=13707">Bug 13707</a>] [meta] VCPP compatibility issues
              </li>
          </ul>
        </div>
        <br>

      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>