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

Hans Wennborg hans at chromium.org
Fri May 23 18:37:58 PDT 2014


On Fri, May 23, 2014 at 3:06 AM, Nico Rieck <nico.rieck at gmail.com> wrote:
> 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.

I think the functionality looks good, but I'm worried that this seems
more like a semantic property than an ABI property. I'd like to hear
Reid or Richard's opinion.

 - Hans



More information about the cfe-commits mailing list