[all-commits] [llvm/llvm-project] 9c33fa: [Clang] Use correct evaluation contexts when insta...
cor3ntin via All-commits
all-commits at lists.llvm.org
Tue May 20 05:04:56 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 9c33faf8628ae639e6c9b39857e1e413c49e38f0
https://github.com/llvm/llvm-project/commit/9c33faf8628ae639e6c9b39857e1e413c49e38f0
Author: cor3ntin <corentinjabot at gmail.com>
Date: 2025-05-20 (Tue, 20 May 2025)
Changed paths:
M clang/docs/ReleaseNotes.rst
M clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
M clang/test/CodeGenCXX/cxx1y-variable-template.cpp
M clang/test/SemaCXX/cxx1y-variable-templates_top_level.cpp
Log Message:
-----------
[Clang] Use correct evaluation contexts when instantiating a var without initializer (#140699)
The evaluation context was improperly set up, such that we were trying
to set up cleanups for a global variable at the point of use, which led
to incorrect diagnostics about the variable not being capturable.
Fixes #140632
Fixes #140622
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