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
Showing
- include/clang/Basic/DiagnosticSemaKinds.td 5 additions, 0 deletionsinclude/clang/Basic/DiagnosticSemaKinds.td
- lib/Sema/SemaTemplate.cpp 23 additions, 0 deletionslib/Sema/SemaTemplate.cpp
- test/SemaTemplate/explicit-instantiation.cpp 19 additions, 4 deletionstest/SemaTemplate/explicit-instantiation.cpp
Loading
Please register or sign in to comment