Skip to content
Unverified Commit 3a0309c5 authored by Matheus Izvekov's avatar Matheus Izvekov
Browse files

[clang] Improve diagnostics for expansion length mismatch



When checking parameter packs for expansion, instead of basing the diagnostic for
length mismatch for outer parameters only on the known number of expansions,
we should also analyze SubstTemplateTypeParmPackType and SubstNonTypeTemplateParmPackExpr
for unexpanded packs, so we can emit a diagnostic pointing to a concrete
outer parameter.

Signed-off-by: default avatarMatheus Izvekov <mizvekov@gmail.com>

Differential Revision: https://reviews.llvm.org/D128095
parent 0f6a2cd2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment