------- Comment #7 from pinskia at gcc dot gnu dot org  2010-03-18 17:05 -------
Actually this is a simple patch:
Index: c-decl.c
===================================================================
--- c-decl.c    (revision 157518)
+++ c-decl.c    (working copy)
@@ -6118,6 +6118,7 @@ grokparms (struct c_arg_info *arg_info, 

                  TREE_VALUE (typelt) = error_mark_node;
                  TREE_TYPE (parm) = error_mark_node;
+                 arg_types = NULL_TREE;
                }
              else if (VOID_TYPE_P (type))
                {

Since if arg_types is returned and a NULL_TREE means a variable length
arguments, we get away with still diagnosing all the other issues (well close
to all overs).


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43211

Reply via email to