[clang] [Clang] Fix a number of issues involving expansion statements (PR #217110)
Corentin Jabot via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 20 04:09:09 PDT 2026
================
@@ -501,6 +497,12 @@ features cannot lower the translation-unit ABI level;
to a subobject and is used in a context that requires an implicit conversion.
(#GH215900)
+- Fixed a number issues arising from the fact that Clang considered the body of
+ an expansion statement to not be inside a function in some contexts. Several
+ constructs that were previously incorrectly rejected inside expansion statements
+ (e.g. `thread_local` variables, `va_start`, and `co_await`/`co_yield`/`co_return`)
+ are now accepted, and vice versa.
+
----------------
cor3ntin wrote:
I think we should backport that - so no changelog.
The logic is that few people are going to use expansion statement so the risk is low - but shipping expansion statements with known bugs is less than useful.
https://github.com/llvm/llvm-project/pull/217110
More information about the cfe-commits
mailing list