[all-commits] [llvm/llvm-project] 5ff7f4: [C++20] Destroying delete and deleted destructors ...

Aaron Ballman via All-commits all-commits at lists.llvm.org
Thu Jan 9 05:29:40 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5ff7f479a1f30d9c5393e4f94df6178a63cc2236
      https://github.com/llvm/llvm-project/commit/5ff7f479a1f30d9c5393e4f94df6178a63cc2236
  Author: Aaron Ballman <aaron at aaronballman.com>
  Date:   2025-01-09 (Thu, 09 Jan 2025)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/AST/DeclCXX.h
    M clang/lib/AST/DeclCXX.cpp
    M clang/lib/Sema/SemaExceptionSpec.cpp
    M clang/lib/Sema/SemaExprCXX.cpp
    M clang/test/CXX/expr/expr.unary/expr.delete/p10.cpp
    M clang/test/SemaCXX/cxx2a-destroying-delete.cpp
    M clang/test/SemaCXX/noexcept-destroying-delete.cpp

  Log Message:
  -----------
  [C++20] Destroying delete and deleted destructors (#118800)

When a destroying delete overload is selected, the destructor is not
automatically called. Therefore, the destructor can be deleted without
causing the program to be ill-formed.

Fixes #46818



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list