[PATCH] Downgrade "definition of dllimport static field" error to warning for class templates (PR19902)
Hans Wennborg
hans at chromium.org
Mon Jun 2 19:37:01 PDT 2014
Hi nrieck, rnk,
This allows us to compile the following kind of code, which occurs in MSVC headers:
template <typename> struct S {
__declspec(dllimport) static int x;
};
template <typename T> int S<T>::x;
Please take a look.
http://reviews.llvm.org/D3998
Files:
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaDecl.cpp
test/SemaCXX/dllimport.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D3998.10038.patch
Type: text/x-patch
Size: 8713 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140603/4da53c9b/attachment.bin>
More information about the cfe-commits
mailing list