]> granicus.if.org Git - clang/commit
Warn about dllexported explicit class template instantiation declarations (PR22035)
authorHans Wennborg <hans@hanshq.net>
Thu, 15 Jan 2015 21:18:30 +0000 (21:18 +0000)
committerHans Wennborg <hans@hanshq.net>
Thu, 15 Jan 2015 21:18:30 +0000 (21:18 +0000)
commitf0ee4dc5886ba64f430fb4c5c85291f300705326
treed9b21bcf3dfbf4dd55177414ccc8b4f9e6015313
parente4c2ebcfdadd4b77e3720ac8dc1777f87c3489fd
Warn about dllexported explicit class template instantiation declarations (PR22035)

Clang would previously become confused and crash here.

It does not make a lot of sense to export these, so warning seems appropriate.

MSVC will export some member functions for this kind of specializations, whereas
MinGW ignores the dllexport-edness. The latter behaviour seems better.

Differential Revision: http://reviews.llvm.org/D6984

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@226208 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaDeclCXX.cpp
lib/Sema/SemaTemplate.cpp
test/CodeGenCXX/dllexport.cpp
test/SemaCXX/dllexport.cpp