[PATCH] D20608: clang-cl: Treat dllimport explicit template instantiation definitions as declarations (PR27810, PR27811)

Hans Wennborg via cfe-commits cfe-commits at lists.llvm.org
Wed May 25 09:35:07 PDT 2016


hans added a comment.

In http://reviews.llvm.org/D20608#438760, @majnemer wrote:

> Does this change our behavior for mingw?


No, this only affects the MS ABI.

MinGW doesn't seem to do this trick. For example, in this code, they will emit a definition for S<int>::Inner::f:

  template <typename T> struct S {
    struct Inner {
      void f() {}
    };
  };
  template struct __declspec(dllimport) S<int>;


http://reviews.llvm.org/D20608





More information about the cfe-commits mailing list