================
@@ -17705,6 +17706,12 @@ bool Sema::DiagnoseAssignmentResult(AssignConvertType 
ConvTy,
   case AssignConvertType::CompatibleOBTDiscards:
     return false;
   case AssignConvertType::IncompatibleOBTKinds: {
+    assert(!SrcType->isFunctionType() &&
+           "Unexpected function type found in IncompatibleOBTKinds 
assignment");
+    if (SrcType->canDecayToPointerType()) {
+      SrcType = Context.getDecayedType(SrcType);
+    }
----------------
NeKon69 wrote:

Oh yeah I forget about this all the time

https://github.com/llvm/llvm-project/pull/187038
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to