Part of PR15673: If a function template has a default argument in which
substitution failed, report that as a substitution failure rather than pretending that there was no default argument. The test cases in PR15673 have exposed some pre-existing poor diagnostics here. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@185604 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- include/clang/Sema/Sema.h 3 additions, 1 deletioninclude/clang/Sema/Sema.h
- lib/Sema/SemaTemplate.cpp 9 additions, 3 deletionslib/Sema/SemaTemplate.cpp
- lib/Sema/SemaTemplateDeduction.cpp 5 additions, 2 deletionslib/Sema/SemaTemplateDeduction.cpp
- test/SemaTemplate/overload-candidates.cpp 45 additions, 0 deletionstest/SemaTemplate/overload-candidates.cpp
Loading
Please register or sign in to comment