summaryrefslogtreecommitdiff
path: root/gcc/cp/decl2.c
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>1999-08-29 01:20:54 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>1999-08-29 01:20:54 +0000
commit165c511ec05fabc86c934447f6138a0032434e1f (patch)
tree19f306682b0a1129be8e18537e035a13d7b2141c /gcc/cp/decl2.c
parent945558b6dadeaea1269d0769cca73e4a2ac68dc4 (diff)
downloadgcc-165c511ec05fabc86c934447f6138a0032434e1f.tar.gz
* decl2.c (arg_assoc_class): Bail if the class is a builtin type.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@28954 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/decl2.c')
-rw-r--r--gcc/cp/decl2.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c
index 100f332d192..b36abf2bd10 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);