[Sema] `setInvalidDecl` for error deduction declaration
authorCongcong Cai <congcongcai0907@163.com>
Tue, 23 May 2023 20:14:10 +0000 (22:14 +0200)
committerCongcong Cai <congcongcai0907@163.com>
Tue, 23 May 2023 20:14:12 +0000 (22:14 +0200)
commitca9683651e52196f590bc244d9c506ed39fe1d92
tree7cdf0001199f815f5b43e554d86ab7752022a26a
parent4edaacf04baa44b07394319781aacfb39311d498
[Sema] `setInvalidDecl` for error deduction declaration

Fixed: https://github.com/llvm/llvm-project/issues/62408
`setInvalidDecl` for invalid `CXXDeductionGuideDecl` to
avoid crashes during semantic analysis.

Reviewed By: aaron.ballman

Differential Revision: https://reviews.llvm.org/D149516
clang/docs/ReleaseNotes.rst
clang/include/clang/Sema/Sema.h
clang/lib/Sema/SemaDecl.cpp
clang/lib/Sema/SemaDeclCXX.cpp
clang/test/CXX/expr/expr.prim/expr.prim.req/nested-requirement.cpp
clang/test/CXX/temp/temp.res/temp.local/p3.cpp
clang/test/Parser/cxx1z-class-template-argument-deduction.cpp
clang/test/SemaCXX/invalid-deduction-guide-as-template-candidates.cpp [new file with mode: 0644]