[all-commits] [llvm/llvm-project] 8549b3: [Clang] Don't assert non-empty packs for FunctionP...
Younan Zhang via All-commits
all-commits at lists.llvm.org
Mon Sep 9 00:10:05 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 8549b324bc1f450f4477f46f18db67439dbf6d75
https://github.com/llvm/llvm-project/commit/8549b324bc1f450f4477f46f18db67439dbf6d75
Author: Younan Zhang <zyn7109 at gmail.com>
Date: 2024-09-09 (Mon, 09 Sep 2024)
Changed paths:
M clang/docs/ReleaseNotes.rst
M clang/lib/Sema/SemaTemplateVariadic.cpp
M clang/test/SemaCXX/lambda-pack-expansion.cpp
R clang/test/SemaCXX/pr61460.cpp
Log Message:
-----------
[Clang] Don't assert non-empty packs for FunctionParmPackExprs (#107561)
`FunctionParmPackExpr`s are peculiar in that they have to be of
unexpanded dependency while they don't introduce any unexpanded packs.
So this patch rules them out in the non-empty pack assertion in
`DiagnoseUnexpandedParameterPack()`.
There was a fix #69224, but that turned out to be insufficient.
I also moved the separate tests to a pre-existing file.
Fixes https://github.com/llvm/llvm-project/issues/86361
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list