[all-commits] [llvm/llvm-project] 1908d4: [clang][Interp] Reject static lambdas with capture...
Timm Baeder via All-commits
all-commits at lists.llvm.org
Tue Dec 12 02:08:51 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 1908d4cda6760d2c9b28d8bbb4a5b7eeb9697c96
https://github.com/llvm/llvm-project/commit/1908d4cda6760d2c9b28d8bbb4a5b7eeb9697c96
Author: Timm Baeder <tbaeder at redhat.com>
Date: 2023-12-12 (Tue, 12 Dec 2023)
Changed paths:
M clang/lib/AST/Interp/ByteCodeEmitter.cpp
M clang/test/AST/Interp/cxx23.cpp
Log Message:
-----------
[clang][Interp] Reject static lambdas with captures (#74718)
Static lambdas cannot have captures. They may still end up in the
constant evaluator though. They've been diagnosted appropriately before,
so just reject them here.
This is similar to #74661, but for the new constant expression
interpreter.
More information about the All-commits
mailing list