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

            Bug ID: 48161
           Summary: clang-cl fails to dllexport explicit specialization of
                    member function
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected]
            Blocks: 13707

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; Bug 34849.
However in this case, the attribute is never propagated from the template to
the specialization.)


Referenced Bugs:

https://bugs.llvm.org/show_bug.cgi?id=13707
[Bug 13707] [meta] VCPP compatibility issues
-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to