We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad033c9 commit 88f702eCopy full SHA for 88f702e
clang/lib/Sema/SemaInit.cpp
@@ -4860,6 +4860,9 @@ static void TryListInitialization(Sema &S,
4860
assert(
4861
S.Context.hasSameUnqualifiedType(SubInit[0]->getType(), DestType) &&
4862
"Deduced to other type?");
4863
+ assert(Kind.getKind() == clang::InitializationKind::IK_DirectList &&
4864
+ "List-initialize structured bindings but not "
4865
+ "direct-list-initialization?");
4866
TryArrayCopy(S,
4867
InitializationKind::CreateDirect(Kind.getLocation(),
4868
InitList->getLBraceLoc(),
0 commit comments