diff options
| author | Hans Wennborg <hans@hanshq.net> | 2014-06-04 00:18:41 +0000 |
|---|---|---|
| committer | Hans Wennborg <hans@hanshq.net> | 2014-06-04 00:18:41 +0000 |
| commit | cc15d731ca100cddd24494d5c6738da8daf8131d (patch) | |
| tree | a0f68929dc8dfa3566ae90ad79b15edd1d9d7021 /lib/Basic/FileSystemStatCache.cpp | |
| parent | fb9e1524b7c546b1e88647eef43f5fbc7906ab79 (diff) | |
| download | clang-cc15d731ca100cddd24494d5c6738da8daf8131d.tar.gz clang-cc15d731ca100cddd24494d5c6738da8daf8131d.tar.bz2 clang-cc15d731ca100cddd24494d5c6738da8daf8131d.tar.xz | |
Downgrade "definition of dllimport static field" error to warning for class templates (PR19902)
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;
The definition works similarly to a dllimport inline function definition and
gets available_externally linkage.
Differential Revision: http://reviews.llvm.org/D3998
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@210141 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Basic/FileSystemStatCache.cpp')
0 files changed, 0 insertions, 0 deletions
