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.
Paths
| Differential D3998
Downgrade "definition of dllimport static field" error to warning for class templates (PR19902) ClosedPublic Authored by hans on Jun 2 2014, 7:36 PM.
Details Summary 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.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Jun 3 2014, 5:01 PM
Revision Contents
Diff 10072 cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td
cfe/trunk/lib/Sema/SemaDecl.cpp
cfe/trunk/test/CodeGenCXX/dllimport.cpp
cfe/trunk/test/SemaCXX/dllimport.cpp
|