[llvm-bugs] [Bug 39496] New: [dllexport] Failing to export static locals of methods after explicit instantiation definition

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Oct 30 02:25:51 PDT 2018


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

            Bug ID: 39496
           Summary: [dllexport] Failing to export static locals of methods
                    after explicit instantiation definition
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: hans at chromium.org
                CC: llvm-bugs at lists.llvm.org, richard-llvm at metafoo.co.uk

For example:

template <typename T> struct S {
  int foo() { static int x; return x++; }
};

template struct __declspec(dllexport) S<int>;

int f() {
  S<int> a;
  return a.foo();
}


Clang will dllexport S<int>::foo() but fail to export the static local.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20181030/3f22efb4/attachment.html>


More information about the llvm-bugs mailing list