aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/cp-tree.h
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>1999-11-03 21:34:04 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>1999-11-03 21:34:04 +0000
commit1e30f9b4da5c6f2503d459b41e08db56fd7c6174 (patch)
tree3bb7cad6eec2fea3aa04b5db450f0990caa4566a /gcc/cp/cp-tree.h
parent4b66e1c09193e7606ebe6009a872bace584a0eb9 (diff)
downloadgcc-1e30f9b4da5c6f2503d459b41e08db56fd7c6174.zip
gcc-1e30f9b4da5c6f2503d459b41e08db56fd7c6174.tar.gz
gcc-1e30f9b4da5c6f2503d459b41e08db56fd7c6174.tar.bz2
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
Diffstat (limited to 'gcc/cp/cp-tree.h')
-rw-r--r--gcc/cp/cp-tree.h4
1 files changed, 4 insertions, 0 deletions
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))