* decl2.c (arg_assoc_class): Bail if the class is a builtin type.

From-SVN: r28954
This commit is contained in:
Richard Henderson 1999-08-28 18:20:54 -07:00 committed by Richard Henderson
parent b87478f87d
commit 31aa49b770
2 changed files with 9 additions and 0 deletions

View 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.

View 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);