[libcxx] [clang-tools-extra] [compiler-rt] [llvm] [flang] [clang] [Clang][Sema] Fix qualifier restriction of overriden methods (PR #71696)

Aaron Ballman via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 12 07:16:14 PST 2024


================
@@ -799,6 +799,11 @@ Bug Fixes to C++ Support
   completes (except deduction guides). Fixes:
   (`#59827 <https://github.com/llvm/llvm-project/issues/59827>`_)
 
+- Clang now reports error when overriden method's non-class return type drops
+  qualifiers, or qualifiers of class return type are not subset of super method's.
+  Fixes:
----------------
AaronBallman wrote:

```suggestion
- Clang now reports error when an overriden method's non-class return type drops
  qualifiers, or qualifiers of the class return type are not a subset of the overridden method's.
  Fixes:
```

https://github.com/llvm/llvm-project/pull/71696


More information about the llvm-commits mailing list