* decl2.c (arg_assoc_class): Bail if the class is a builtin type.
authorRichard Henderson <rth@cygnus.com>
Sun, 29 Aug 1999 01:20:54 +0000 (18:20 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Sun, 29 Aug 1999 01:20:54 +0000 (18:20 -0700)
From-SVN: r28954

gcc/cp/ChangeLog
gcc/cp/decl2.c

index 581375f88a72c9be08de88cdbb8e0cb12de79598..509251e75b47864c79d9c8763d0942759e7343c3 100644 (file)
@@ -1,3 +1,7 @@
+1999-08-28  Richard Henderson  <rth@cygnus.com>
+
+       * decl2.c (arg_assoc_class): Bail if the class is a builtin type.
+
 1999-08-28  Mark Mitchell  <mark@codesourcery.com>
 
        * cp-tree.def (LABEL_STMT): New tree node.
index 100f332d192971f0d8722cefc8e7d4a661680db0..b36abf2bd106c6a346108f3458d69b9e46fc9bc3 100644 (file)
@@ -4617,6 +4617,11 @@ arg_assoc_class (k, type)
   tree list, friends, context;
   int i;
   
+  /* Backend build structures, such as __builtin_va_list, aren't
+     affected by all this.  */
+  if (!CLASS_TYPE_P (type))
+    return 0;
+
   if (purpose_member (type, k->classes))
     return 0;
   k->classes = tree_cons (type, NULL_TREE, k->classes);