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: [email protected]
          Reporter: [email protected]
                CC: [email protected]

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
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to