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

            Bug ID: 34849
           Summary: clang-cl fails to dllexport specialization of class
                    template member function when the class template is
                    dllexport
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangb...@nondot.org
          Reporter: h...@chromium.org
                CC: llvm-bugs@lists.llvm.org

struct T;
template <typename> struct __declspec(dllexport) S { void foo(); };

template<> void S<T>::foo() {}  <-- Should be exported.
template struct S<T>;


This happens because the specialization occurs before the instantiation of
S<int>, so the attribute doesn't get inherited.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to