https://llvm.org/bugs/show_bug.cgi?id=23770

            Bug ID: 23770
           Summary: Propagating dll attributes to template bases doesn't
                    work for explicit instantiation
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
            Blocks: 13707
    Classification: Unclassified

Consider:

  template <typename T> struct BaseTemplate {
      void f() {}
  };

  template <typename T> struct Template : BaseTemplate<T> {
  };

  extern template struct Template<int>;
  template struct __declspec(dllexport) Template<int>;


MSVC will export BaseTemplate<int>::f() here, but clang-cl fails to do so.

(This is really just another aspect of Issue 23667.)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to