[PATCH] MS ABI: Treat dllimport explicit specializations as inline

Nico Rieck nico.rieck at gmail.com
Fri May 23 03:06:25 PDT 2014


MSVC allows

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

without f<int> being specified as inline. This only works with dllimport
and seems to have no effect on linkage without it.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-MS-ABI-Treat-dllimport-explicit-specializations-as-i.patch
Type: text/x-patch
Size: 15435 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140523/81d184bc/attachment.bin>


More information about the cfe-commits mailing list