]> granicus.if.org Git - clang/commit
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)
commitf945e9022eef9de82804907e77cc29ccc9e5be1a
treee17f242ad1af5a043b79cc74cbfa9a6dd9dcaced
parent1d9ac0896d261f6186eec4c6df7c5b1241a663c1
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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@221448 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaTemplate.cpp
test/SemaTemplate/explicit-instantiation.cpp