http://llvm.org/bugs/show_bug.cgi?id=20136

            Bug ID: 20136
           Summary: dllimport on explicit specialization of dllexport
                    function template is ignored
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

In this example:

  template <typename T> void __declspec(dllexport) f() { };
  template void __declspec(dllimport) f<int>();
  void foo() { f<int>(); }

We ignore dllimport on the f<int> instantiation, and end up exporting it, which
is the opposite of what MSVC does.

-- 
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