[clang] [clang][AST] Add unit test for lambda not marked dependent in `noexcept` specifier (PR #232986)
Manuel Sainz de Baranda y Goñi via cfe-commits
cfe-commits at lists.llvm.org
Sat Oct 17 14:33:26 PDT 2026
================
@@ -1141,6 +1141,14 @@ void Sema::ActOnLambdaExpressionAfterIntroducer(LambdaIntroducer &Intro,
// Determine if we're within a context where we know that the lambda will
// be dependent, because there are template parameters in scope.
+ //
+ // FIXME: A lambda in the noexcept specifier of an abbreviated function
+ // template (e.g. `auto&&`) is not marked dependent, even though it captures
+ // a dependent entity. Could this be because the implicit template parameter
+ // is not in scope while the specifier is parsed, leaving the lambda's
+ // dependency kind as LDK_Unknown? See:
+ // * https://github.com/llvm/llvm-project/issues/232874
+ // * https://github.com/llvm/llvm-project/issues/233102
----------------
redcode wrote:
I've added the unit test and updated the FIXME to mention it.
https://github.com/llvm/llvm-project/pull/232986
More information about the cfe-commits
mailing list