[all-commits] [llvm/llvm-project] 9975dc: Defer checking for mismatches between the deletedn...

Richard Smith via All-commits all-commits at lists.llvm.org
Thu Mar 12 13:07:29 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 9975dc38bf734b4d86eab61269080ca231379d23
      https://github.com/llvm/llvm-project/commit/9975dc38bf734b4d86eab61269080ca231379d23
  Author: Richard Smith <richard at metafoo.co.uk>
  Date:   2020-03-12 (Thu, 12 Mar 2020)

  Changed paths:
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/lib/Sema/SemaDecl.cpp
    M clang/lib/Sema/SemaDeclCXX.cpp
    M clang/test/CXX/class.derived/class.abstract/p16.cpp
    M clang/test/CXX/special/class.dtor/p5-0x.cpp
    M clang/test/SemaCXX/PR9572.cpp
    M clang/test/SemaCXX/cxx0x-cursory-default-delete.cpp
    M clang/test/SemaCXX/cxx2a-consteval.cpp
    M clang/test/SemaCXX/virtual-base-used.cpp

  Log Message:
  -----------
  Defer checking for mismatches between the deletedness of and overriding
function and an overridden function until we know whether the overriding
function is deleted.

We previously did these checks when we first built the declaration,
which was too soon in some cases. We now defer all these checks to the
end of the class.

Also add missing check that a consteval function cannot override a
non-consteval function and vice versa.




More information about the All-commits mailing list