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

Congcong Cai via All-commits all-commits at lists.llvm.org
Tue May 23 00:08:26 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: eb5902ffc97163338bab95d2fd84a953ee76e96f
      https://github.com/llvm/llvm-project/commit/eb5902ffc97163338bab95d2fd84a953ee76e96f
  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