]> granicus.if.org Git - clang/commit
[c++17] When deducing the type of a non-type template parameter from the type
authorRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 1 Dec 2017 21:24:36 +0000 (21:24 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 1 Dec 2017 21:24:36 +0000 (21:24 +0000)
commit5a9220e6798f1052bbdb4cfa96711fa5ce2f00e9
tree0d2ad8e39a01339a06a426a3a549141fc2c092b4
parente57d4893badb16c9432e5b6788067403319eed08
[c++17] When deducing the type of a non-type template parameter from the type
of its argument, perform function-to-pointer and array-to-pointer decay on the
parameter type first.

Otherwise deduction will fail, as the type of the argument will be decayed.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@319584 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaTemplateDeduction.cpp
test/SemaTemplate/temp_arg_nontype_cxx1z.cpp