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)
commit479ba8ee0e51b576182727c111d1efa5c10d5818
tree62a1ba49bf1d302bf46e4ea6bcd578a17e297360
parenta90474544e47bd0d4452cfe4d9073ce48bacf150
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.

llvm-svn: 300805
clang/include/clang/AST/TypeLoc.h
clang/lib/Sema/SemaTemplate.cpp
clang/test/SemaCXX/cxx1z-class-template-argument-deduction.cpp