[clang] [clang][Sema] decay functions to pointers for qualifier discarding and overflow behavior (PR #183616)

Shafik Yaghmour via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 11 10:10:11 PDT 2026


================
@@ -17649,6 +17651,9 @@ bool Sema::DiagnoseAssignmentResult(AssignConvertType ConvTy,
   case AssignConvertType::CompatibleOBTDiscards:
     return false;
   case AssignConvertType::IncompatibleOBTKinds: {
+    if (SrcType->isArrayType() || SrcType->isFunctionType()) {
----------------
shafik wrote:

IF you have a way of triggering the diagnostic that is great, if you don't then you don't. We want to avoid uncovered code as much as possible, it just gives rise to regressions over the long-term.

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


More information about the cfe-commits mailing list