Fix for exception specification mismatch in explicit instantiation.
authorAlexey Bataev <a.bataev@hotmail.com>
Thu, 6 Nov 2014 10:10:50 +0000 (10:10 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Thu, 6 Nov 2014 10:10:50 +0000 (10:10 +0000)
commit73983918c45b3b2c23b871b05e44c800f4aeff59
tree81cbd5449fb90ee9caed8580afcbd086bf45a995
parentdde4c464dd8c8d6abe6be7ce7c1eaf307309197f
Fix for exception specification mismatch in explicit instantiation.
According to C++ standard if an exception-specification is specified in an explicit instantiation directive, it shall be compatible with the exception-specifications of other declarations of that function. This patch adds checks for this.
Differential Revision: http://reviews.llvm.org/D5822

llvm-svn: 221448
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/lib/Sema/SemaTemplate.cpp
clang/test/SemaTemplate/explicit-instantiation.cpp