aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Henderson <rth@cygnus.com>1999-08-28 18:20:54 -0700
committerRichard Henderson <rth@gcc.gnu.org>1999-08-28 18:20:54 -0700
commit31aa49b77060d8d81466908a506854a08b7efb18 (patch)
tree19f306682b0a1129be8e18537e035a13d7b2141c
parentb87478f87d81012932ebb3f9777369aaa64f0f97 (diff)
downloadgcc-31aa49b77060d8d81466908a506854a08b7efb18.zip
gcc-31aa49b77060d8d81466908a506854a08b7efb18.tar.gz
gcc-31aa49b77060d8d81466908a506854a08b7efb18.tar.bz2
* decl2.c (arg_assoc_class): Bail if the class is a builtin type.
From-SVN: r28954
-rw-r--r--gcc/cp/ChangeLog4
-rw-r--r--gcc/cp/decl2.c5
2 files changed, 9 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 581375f..509251e 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -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.
diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c
index 100f332..b36abf2 100644
--- a/gcc/cp/decl2.c
+++ b/gcc/cp/decl2.c
@@ -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);