https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100532
--- Comment #8 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Maybe the simple fix:
diff --git a/gcc/c/c-typeck.cc b/gcc/c/c-typeck.cc
index 6e044b4afbc..8f8562936dc 100644
--- a/gcc/c/c-typeck.cc
+++ b/gcc/c/c-typeck.cc
@@ -3367,7 +3367,7 @@ convert_argument (location_t ploc, tree function, tree
fundecl,
{
error_at (ploc, "type of formal parameter %d is incomplete",
parmnum + 1);
- return val;
+ return error_mark_node;
}
/* Optionally warn about conversions that differ from the default