[all-commits] [llvm/llvm-project] ca9683: [Sema] `setInvalidDecl` for error deduction declar...

Congcong Cai via All-commits all-commits at lists.llvm.org
Tue May 23 13:16:37 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ca9683651e52196f590bc244d9c506ed39fe1d92
      https://github.com/llvm/llvm-project/commit/ca9683651e52196f590bc244d9c506ed39fe1d92
  Author: Congcong Cai <congcongcai0907 at 163.com>
  Date:   2023-05-23 (Tue, 23 May 2023)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/Sema/Sema.h
    M clang/lib/Sema/SemaDecl.cpp
    M clang/lib/Sema/SemaDeclCXX.cpp
    M clang/test/CXX/expr/expr.prim/expr.prim.req/nested-requirement.cpp
    M clang/test/CXX/temp/temp.res/temp.local/p3.cpp
    M clang/test/Parser/cxx1z-class-template-argument-deduction.cpp
    A clang/test/SemaCXX/invalid-deduction-guide-as-template-candidates.cpp

  Log Message:
  -----------
  [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




More information about the All-commits mailing list