From 1e30f9b4da5c6f2503d459b41e08db56fd7c6174 Mon Sep 17 00:00:00 2001 From: Mark Mitchell Date: Wed, 3 Nov 1999 21:34:04 +0000 Subject: class.c (check_bitfield_decl): New function, split out from finish_stuct_1. * class.c (check_bitfield_decl): New function, split out from finish_stuct_1. (check_field_decl): Likewise. Recursively examine members of anonymous structs. (finish_struct_1): Use them. * cp-tree.h (ANON_UNION_TYPE_P): New macro. From-SVN: r30381 --- gcc/cp/cp-tree.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gcc/cp/cp-tree.h') diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h index b79242b..882ca04 100644 --- a/gcc/cp/cp-tree.h +++ b/gcc/cp/cp-tree.h @@ -2321,6 +2321,10 @@ extern int flag_new_for_scope; #define SET_ANON_AGGR_TYPE_P(NODE) \ (TYPE_LANG_SPECIFIC (NODE)->anon_aggr = 1) +/* Nonzero if TYPE is an anonymous union type. */ +#define ANON_UNION_TYPE_P(NODE) \ + (TREE_CODE (NODE) == UNION_TYPE && ANON_AGGR_TYPE_P (NODE)) + /* For a VAR_DECL that is an anonymous union, these are the various sub-variables that make up the anonymous union. */ #define DECL_ANON_UNION_ELEMS(NODE) DECL_ARGUMENTS ((NODE)) -- cgit v1.1