]> granicus.if.org Git - clang/commit
PR32673: Don't wrap parameter packs in SubstTemplateTypeParmPackType nodes when formi...
authorRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 20 Apr 2017 01:15:31 +0000 (01:15 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 20 Apr 2017 01:15:31 +0000 (01:15 +0000)
commit6a8a5b41549721c36fa6b68232d300c64050d047
treed54cd9971ad95c840cea4d0058c2e71c4d1c3477
parent98641f22328f8541a90a380ee2cfe6d61e106254
PR32673: Don't wrap parameter packs in SubstTemplateTypeParmPackType nodes when forming implicit deduction guides.

Doing so thwarts template type deduction. Instead, substitute the pack directly
by picking "slice 0" of the resulting expansion.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@300805 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/TypeLoc.h
lib/Sema/SemaTemplate.cpp
test/SemaCXX/cxx1z-class-template-argument-deduction.cpp