https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126284

--- Comment #5 from uecker at gcc dot gnu.org ---
diff --git a/gcc/c/c-typeck.cc b/gcc/c/c-typeck.cc
index 928f90ba086..e9b5879e37d 100644
--- a/gcc/c/c-typeck.cc
+++ b/gcc/c/c-typeck.cc
@@ -4114,8 +4114,6 @@ top_array_vla_p (const_tree type)
 { 
   if (TREE_CODE (type) != ARRAY_TYPE)
     return false;
-  if (!COMPLETE_TYPE_P (type))
-    return false;

   tree d = TYPE_DOMAIN (type);

Reply via email to