[all-commits] [llvm/llvm-project] 0cc8a6: Forbid co_await and co_yield in invalid expr conte...
NewSigma via All-commits
all-commits at lists.llvm.org
Mon Mar 10 09:00:06 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 0cc8a63d0c7acd1903aab3e9c802785b07199b4c
https://github.com/llvm/llvm-project/commit/0cc8a63d0c7acd1903aab3e9c802785b07199b4c
Author: NewSigma <46043910+NewSigma at users.noreply.github.com>
Date: 2025-03-10 (Mon, 10 Mar 2025)
Changed paths:
M clang/docs/ReleaseNotes.rst
M clang/lib/Sema/SemaCoroutine.cpp
R clang/test/SemaCXX/coroutine-decltype.cpp
A clang/test/SemaCXX/coroutine-unevaluate.cpp
Log Message:
-----------
Forbid co_await and co_yield in invalid expr contexts (#130455)
Fix #78426
C++26 introduced braced initializer lists as template arguments.
However, such contexts should be considered invalid for co_await and
co_yield. This commit explicitly rules out the possibility of using
these exprs in template arguments.
---------
Co-authored-by: cor3ntin <corentinjabot at gmail.com>
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