]> granicus.if.org Git - clang/commit
Fix assertion failure for a cv-qualified array as a non-type template
authorRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 11 Oct 2019 01:29:53 +0000 (01:29 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 11 Oct 2019 01:29:53 +0000 (01:29 +0000)
commit532083e190fcf07ec1e528b542da2281645c77d9
tree5318da256d6be9403e07af924892012c7eeb3760
parent06b82840545cdd483f3d4bf2ce20cf69f3f5c142
Fix assertion failure for a cv-qualified array as a non-type template
parameter type.

We were both failing to decay the array type to a pointer and failing to
remove the top-level cv-qualifications. Fix this by decaying array
parameters even if the parameter type is dependent.

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