[all-commits] [llvm/llvm-project] 6dc163: [Clang] Check for abstract parameters only when fu...

cor3ntin via All-commits all-commits at lists.llvm.org
Wed Jun 7 12:44:28 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6dc1636815cb9321657f1cb7ac87a46553870dc7
      https://github.com/llvm/llvm-project/commit/6dc1636815cb9321657f1cb7ac87a46553870dc7
  Author: Corentin Jabot <corentinjabot at gmail.com>
  Date:   2023-06-07 (Wed, 07 Jun 2023)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/Sema/SemaChecking.cpp
    M clang/lib/Sema/SemaDecl.cpp
    M clang/lib/Sema/SemaDeclCXX.cpp
    M clang/test/CXX/class.derived/class.abstract/p3.cpp
    M clang/test/CXX/drs/dr6xx.cpp
    M clang/test/SemaCXX/abstract.cpp
    M clang/test/SemaCXX/auto-type-from-cxx.cpp
    M clang/test/SemaObjCXX/parameters.mm

  Log Message:
  -----------
  [Clang] Check for abstract parameters only when functions are defined.

The C++ standard allows abstract parameters in deleted functions
and in function declarations

> The type of a parameter or the return type for a function definition
> shall not be a (possibly cv-qualified) class type that is
> incomplete or abstract within the function body
> unless the function is deleted.

Fixes https://github.com/llvm/llvm-project/issues/63012

Reviewed By: #clang-language-wg, aaron.ballman

Differential Revision: https://reviews.llvm.org/D152096




More information about the All-commits mailing list