The type of a reference to a non-type template parameter pack shouldnot be a pack expansion type.Using a pack expansion type for a pack declaration makes sense, butgeneral expressions should neve
The type of a reference to a non-type template parameter pack shouldnot be a pack expansion type.Using a pack expansion type for a pack declaration makes sense, butgeneral expressions should never have pack expansion types. If we have apack `T *...V`, then the type of `V` is the type `T *`, which containsan unexpanded pack, and is a pointer type.This allows us to better diagnose issues where a template is invalid dueto some non-dependent portion of a dependent type of a non-type templateparameter pack.
show more ...
[ASTImporter] Add test for PackExpansionExprReviewers: a.sidorin, a_sidorinReviewed By: a_sidorinSubscribers: martong, cfe-commitsDifferential Revision: https://reviews.llvm.org/D51142llvm-
[ASTImporter] Add test for PackExpansionExprReviewers: a.sidorin, a_sidorinReviewed By: a_sidorinSubscribers: martong, cfe-commitsDifferential Revision: https://reviews.llvm.org/D51142llvm-svn: 340627