[PATCH] D149516: [Sema] `setInvalidDecl` for error deduction declaration

Congcong Cai via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Apr 29 02:59:59 PDT 2023


HerrCai0907 created this revision.
Herald added a project: All.
HerrCai0907 requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

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


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D149516

Files:
  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/Parser/cxx1z-class-template-argument-deduction.cpp
  clang/test/SemaCXX/invalid-deduction-guide-as-template-candidates.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D149516.518154.patch
Type: text/x-patch
Size: 5816 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230429/3ea2ac06/attachment.bin>


More information about the cfe-commits mailing list