[all-commits] [llvm/llvm-project] a0651d: [clang][Sema] Avoid guessing unexpanded packs' siz...
Younan Zhang via All-commits
all-commits at lists.llvm.org
Wed Apr 10 04:23:55 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: a0651db490328a972185e44ff637970b3456406b
https://github.com/llvm/llvm-project/commit/a0651db490328a972185e44ff637970b3456406b
Author: Younan Zhang <zyn7109 at gmail.com>
Date: 2024-04-10 (Wed, 10 Apr 2024)
Changed paths:
M clang/docs/ReleaseNotes.rst
M clang/lib/Sema/SemaTemplateVariadic.cpp
M clang/test/SemaTemplate/alias-templates.cpp
Log Message:
-----------
[clang][Sema] Avoid guessing unexpanded packs' size in getFullyPackExpandedSize (#87768)
There has been an optimization for `SizeOfPackExprs` since c5452ed9, in
which
we overlooked a case where the template arguments were not yet
formed into a `PackExpansionType` at the token annotation stage. This
led to a problem in that a template involving such expressions may
lose its nature of being dependent, causing some false-positive
diagnostics.
Fixes https://github.com/llvm/llvm-project/issues/84220
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