[Clang] Correctly handle generic lambda used as default template argument.
authorCorentin Jabot <corentinjabot@gmail.com>
Wed, 24 May 2023 16:11:40 +0000 (18:11 +0200)
committerCorentin Jabot <corentinjabot@gmail.com>
Fri, 26 May 2023 14:04:10 +0000 (16:04 +0200)
commit75cd8cdbde45d07800d5cefa6f7a213271245e4a
tree00b009126059265dbb11eb9a8065d5e5b7f911cb
parent0c183795bbc67b973b8802d834271520573bf558
[Clang] Correctly handle generic lambda used as default template argument.

Adjust the template pparameter depth when parsing default
template arguments as they may introduce generic lambda whose parameters
are not substituted at the same depth.

Fixes #62611

Reviewed By: erichkeane, #clang-language-wg

Differential Revision: https://reviews.llvm.org/D151342
clang/docs/ReleaseNotes.rst
clang/lib/Parse/ParseTemplate.cpp
clang/test/SemaCXX/cxx2a-template-lambdas.cpp