[all-commits] [llvm/llvm-project] b333ed: [clang] When checking for covariant return types, ...

Boaz Brickner via All-commits all-commits at lists.llvm.org
Wed Oct 16 07:02:47 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b333edd0d6da744c099ad3ff3b5fbd2d4e4dd45a
      https://github.com/llvm/llvm-project/commit/b333edd0d6da744c099ad3ff3b5fbd2d4e4dd45a
  Author: Boaz Brickner <brickner at google.com>
  Date:   2024-10-16 (Wed, 16 Oct 2024)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/Sema/SemaDeclCXX.cpp
    M clang/test/SemaCXX/virtual-override.cpp

  Log Message:
  -----------
  [clang] When checking for covariant return types, make sure the pointers or references are to *classes* (#111856)

https://eel.is/c++draft/class.virtual#8.1

This prevents overriding methods with non class return types that have
less cv-qualification.

Fixes: #111742



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