-
- Downloads
Work around a standard defect: template argument deduction for non-type
template parameters of reference type basically doesn't work, because we're always deducing from an argument expression of non-reference type, so the type of the deduced expression never matches. Instead, compare the type of an expression naming the parameter to the type of the argument. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@290586 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- lib/Sema/SemaTemplate.cpp 7 additions, 1 deletionlib/Sema/SemaTemplate.cpp
- lib/Sema/SemaTemplateDeduction.cpp 12 additions, 7 deletionslib/Sema/SemaTemplateDeduction.cpp
- test/SemaTemplate/temp_arg_nontype.cpp 25 additions, 0 deletionstest/SemaTemplate/temp_arg_nontype.cpp
- test/SemaTemplate/temp_arg_nontype_cxx1z.cpp 6 additions, 0 deletionstest/SemaTemplate/temp_arg_nontype_cxx1z.cpp
Loading
Please register or sign in to comment