Skip to content

Commit d064095

Browse files
committed
[Clang][P1061] Make BindingDecl have NULL TYPE by default
1 parent d496c54 commit d064095

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/lib/Sema/SemaDeclCXX.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -888,11 +888,11 @@ Sema::ActOnDecompositionDeclarator(Scope *S, Declarator &D,
888888
Previous.clear();
889889
}
890890

891-
QualType QT = Context.DependentTy;
891+
QualType QT;
892892
if (B.EllipsisLoc.isValid()) {
893893
if (!cast<Decl>(DC)->isTemplated())
894894
Diag(B.EllipsisLoc, diag::err_pack_outside_template);
895-
QT = Context.getPackExpansionType(QT, std::nullopt,
895+
QT = Context.getPackExpansionType(Context.DependentTy, std::nullopt,
896896
/*ExpectsPackInType=*/false);
897897
}
898898

0 commit comments

Comments
 (0)